× Got a CSS, HTML or webdesign question? Ask it here!

DecoNetwork 8 - Add Script Tags Below jQuery

8 months 3 weeks ago #21330 by margin_mattk
DecoNetwork 8 - Add Script Tags Below jQuery was created by margin_mattk
Is there a way to add <script> tags to the footer?

I wanted to add a simple lightboxing plugin to the site. I was able to do it by adding the <script> and <link> tags to a custom HTML widget, but I had to also add a link to the jQuery CDN, otherwise it gave an error because it was trying to run the lightbox code before running jQuery.

That's why I want to a way to add more <script> tags to the footer, below the <script> tag that runs jQuery.

Please Log in or Create an account to join the conversation.

3 months 2 weeks ago #21826 by ccruz
You can add scripts to the footer or anywhere else on the page. If you encapsulate your scripts inside a dnOnLoad(){ // } function, they will fire after our script libraries have loaded which on some pages is at the very end of the page load as we defer to speed up page loads.

-Cris

Please Log in or Create an account to join the conversation.

Time to create page: 0.123 seconds
Powered by Kunena Forum