Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
JQuery load order?
Moderator: daj
-
duke
JQuery load order?
Usually I would load all my scripts and JQuery in my footer template for faster page loading. But, if I have only one template that requires a particular script, can the link for that be placed in the template that requires it before the call to "jquery-latest.min.js"?
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: JQuery load order?
If the template script isn't dependent on JQuery then yes it can, otherwise it can't 
-
duke
Re: JQuery load order?
That's what I assumed but I failed to find a definitive answer.
So my solution would be to call "jquery-latest.min.js" in the header and the frequently used scripts in the footer. Then any 'one off' scripts can be called on the required template.
So my solution would be to call "jquery-latest.min.js" in the header and the frequently used scripts in the footer. Then any 'one off' scripts can be called on the required template.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: JQuery load order?
Sounds about right. I have to put JQuery in my header too because the page formatting uses it with some in-line code, most of the scripts are at the end of the body.