Smaller js required for LCP < 2.5s from cs.js and x.js render blocking files?

I have been using X Pro for several years. I love the customization capabilities I have to make my site look how I want it to between desktop, tablet, and mobile.

I am trying to get my Core Web Vital LCP score higher. I am using Cloudflare as a CDN to cache and improve my score. On some pages I am there, but the size of the cs.6f62d0f.js and x.js files that both seem to be required in order for the hamburger menu to work on mobile is making it really hard to have an LCP under 2.5 for all of my pages. Many of my pages are long blog posts where I know a big portion of the time is going to be spent loading the root document, so every bit of help I can get to slim down the css and js would be helpful.

Have you given any thought to splitting out the code in those js files so that only the functions truly needed to do LCP have to be loaded up front and then the others can be delayed?

Hey Jeff,

Thanks for reaching out!

It is not possible to modify or divide the script. I consulted with one of our developers who is good at optimizing the site speed, he suggests using WP Rocket plugin optimization because you can achieve better LCP/FCP. Please note that we don’t support any 3rd party integration and if you encounter any problem with your optimization, you may seek 3rd party developers or you can avail of our Elite service.

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.