Archived topic
render-blocking
1 reply · Started by Den on January 1, 2022
Hi team,
I found these 3 lines that are render-blocking
css/dist/block-library/style.min.css?ver=5.8.2
css/yasr-table-light.css?ver=2.9.6 (3rd Party Plugin)
jquery/jquery.min.js?ver=3.6.0
Can I move them to the footer so it does not impact the rendering ? I mean, will there be any functionality issue if I do so ?
-------------------
I got a piece of information on a website that says:
Completely removing jQuery also has its drawbacks. Many plugins and themes use jQuery to work properly. So just pay attention to the theme and make sure you choose a theme that has no dependencies on jQuery such as GeneratePress.
Does it mean that I can remove the jquery? because it slowing my website down :( Again, will there be any functionality issue if I do so ?
Hi there,
you can move them to the Footer BUT the consequences of that may result in CLS or FOUC. As the HTML may load and render with one style and then be updated when the footer styles are loaded. You can always test to see if it causes an issue.
jQuery - GP only enqueues it IF you enable the Sticky Navigation. If you disable sticky nav and the site is still loading it, then it means a plugin is loading it. So be careful removing that as it will break functionality thats dependent on it.