-
llleo
Hello,
I run the speed of the website, and Pagespeed insight show me something slow the speed.…siteground-optimizer-assets/siteground-optimizer-combined-….css(hd-gifts.com)
10.7 KiB
190ms
…jquery/jquery.min.js?ver=3.7.1(hd-gifts.com)
29.3 KiB
950ms
I asked GPT, and follow this advise and find this
Defer Render-blocking JavaScript, But Siteground Optimizer exclude this two/wp-includes/js/jquery/jquery.min.js
/wp-includes/js/jquery/jquery-migrate.min.jsDo generatepress need them? Could I remove them from the exclude?
Is not a big problem to the spped, the phone speed record is 85-91, desktop is around 99, but I think I should know about it. Thanks very much.
-
George
Hi,
It depends on which sticky navigation transition you’re using. The “Fade” and “Slide” transitions require jQuery, while the “None” transition uses vanilla JavaScript. If you’re using one of the animated transitions, keeping jQuery excluded from deferral is the right call.
WordPress loads jQuery Migrate alongside jQuery by default — it helps older code run on newer jQuery versions, so it makes sense to keep both excluded together.
That said, other plugins on your site may also depend on jQuery loading early, so SiteGround Optimizer’s defaults are sensible regardless.
With scores of 85–91 on mobile and 99 on desktop you’re already in great shape — I’d leave things as they are.
-
llleo
Hi George, Thanks very much. It’s a bit too complicated for me, better to leave it alone.
For the Scores, I did everything the same as before — it’s definitely because of GeneratePress.:) -
George
Ok, you are very welcome!
- You must be logged in to reply to this topic.