Defer vs Async.. big difference
-
Once again great plugin! I find this plugin is a necessity on my website.
I just wanted to let people know something that I found out regarding the order that scripts are loaded in WordPress.
I couldn’t figure out why I kept getting jquery undeclared errors when everything seems perfect (except my mobile menu would work/notwork randomly). From what I have figured out, async does NOT honor the order that you have set the scripts on your site to load in. Where defer honors this order.
I have not found much information on this, but for my site, I was getting undeclared and unknown references because jquery was not loading first.
My personal opinion is to use this great plugin but to also be careful and either use defer and/or exclude certain scripts if you are concerned about the order that they are loaded!
Thanks again for this great plugin!
- The topic ‘Defer vs Async.. big difference’ is closed to new replies.