Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Correct order to unify scripts with W3 Total Cache (http://forum.bytesforall.com/showthread.php?t=23944)

esbrinartot Jan 31, 2017 04:34 PM

Correct order to unify scripts with W3 Total Cache
 
I'm trying to minify JS and CSS with W3 Total Cache.

With Javascript I obtain next error in the js console:

ReferenceError: quicktagsL10n is not defined

Which is the correct order of the scripts? scripts that I have are next:

1- wp-includes/js/jquery/jquery.js?ver=1.12.4
2- wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1
3- wp-content/plugins/cookie-law-info/js/cookielawinfo.js?ver=1.5.3
4- wp-includes/js/jquery/ui/core.min.js?ver=1.11.4
5- wp-includes/js/jquery/ui/widget.min.js?ver=1.11.4
6- wp-includes/js/jquery/ui/effect.min.js?ver=1.11.4
7- wp-content/themes/montezuma/javascript/smooth-menu.js?ver=4.7.2
8- wp-content/uploads/montezuma/javascript.js?ver=4.7.2
9- wp-content/plugins/google-analyticator/external-tracking.min.js?ver=6.5.0
10- wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.51.0-2014.06.20
11- wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.6.1
12- wp-content/plugins/simple-share-buttons-adder/js/ssba.min.js?ver=4.7.2
13- wp-content/plugins/lazy-load/js/jquery.sonar.min.js?ver=0.6.1
14- wp-content/plugins/lazy-load/js/lazy-load.js?ver=0.6.1
15- wp-includes/js/wp-embed.min.js?ver=4.7.2
16- wp-content/plugins/akismet/_inc/form.js?ver=3.2
17- wp-includes/js/comment-reply.min.js?ver=4.7.2
18- wp-includes/js/quicktags.min.js?ver=4.7.2


Which should be the correct order for javascript?

For CSS The standard order give no problems.


Rgds and thks in advance

juggledad Jan 31, 2017 05:28 PM

does it happen if you disable all the plugins?
if no, add a couple in at a time till you hit the issue.

as for what order, beats me :o

esbrinartot Feb 9, 2017 02:18 PM

Hi I got the order to minify all ths scripts without errors. It's not so difficult to do it.

However once everything is minified the page load slower. And probably because of the order to load the js and css scripts was not the correct. After spending so many time I quid.

stocktrader Apr 10, 2018 03:05 AM

Hello,

I'm using the same plugin to speed up my site (W3 Total Chace) and at the endI disabled the minify module.
I'm wondering if you found a better solution than turning it off completely.
Thanks and regards,
Marco - StockTrader - https://readitalians.uk


All times are GMT -6. The time now is 02:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.