Re: /** CDN for jQuery core **/
Quote:
Originally Posted by
rbarbour
After further testing and altering, my original post turned out to be correct.
In v154 jQuery is being called AFTER the load for all site-wide jscript_*.js files located within the custom templates folder.
This means all site-wide jscript_*.js files will have to be called from page-specific jscript_*.js
However
In v154 jQuery is being called BEFORE the load for all site-wide jscript_*.php files located within the custom templates folder.
Quote:
Originally Posted by
DrByte
While the jscript_*.js files are loaded before jQuery, the jscript_*.php files are not.
So, this will work:
1. put your jQuery plugin file into the jscript folder, but do NOT add the jscript_ prefix to it.
2. Then create a jscsript_PLUGINNAME.php file in the jscript folder, and in the .php file write only the <script> code. Not even a single line of PHP. Something like:
Code:
<script src="includes/templates/TEMPLATENAME/jscript/THEPLUGINNAME.js"></script>
Awesome thank you both.. My FIRST inclination was to hard code it into the html_header.php file and keep it moving:laugh:, but them I remembered this post, and thought that I should ASK before I DO.. :smile:
I do have another "how should I do this" question DrByte.. I will start a new thread for it when I'm ready.. I need to finish what I'm doing here, and then I shall poke at ya when I post it.. :smile: I am already anticipating that I will get a HUGE groan from you when I pose this question.. But rest assured it is not my intention to give you a headache at all (even if that ends up being the result..:laugh:)