- Joined
- Aug 2, 2017
- Messages
- 156
- Likes
- 96
- Degree
- 0
Defer jQuery gives you a pretty significant speed boost. Mostly in terms of First Contentful Paint
I'm talking about 1s (a lot)
The problem is that a lot of plugins insert jQuery code inline and it can't run properly if jQuery is defer.
I wonder if there is a way to tell inline code in wordpress to "wait" until the jQuery file is loaded.
I use google hosted jQuery because I think that a lot of people would have that version (the most popular, I checked) cached in their browsers. So that 1s should be lower in the real word
Thanks
I'm talking about 1s (a lot)
The problem is that a lot of plugins insert jQuery code inline and it can't run properly if jQuery is defer.
I wonder if there is a way to tell inline code in wordpress to "wait" until the jQuery file is loaded.
I use google hosted jQuery because I think that a lot of people would have that version (the most popular, I checked) cached in their browsers. So that 1s should be lower in the real word
Thanks