Caching and classic cornerstone js script

One of the Js scripts which is marked by lighthouse as remove unused js https://xyz.au/wp-content/themes/pro/cornerstone/assets/js/site/cs-classic.7.4.12.js?ver=7.4.12

other files have dependencies in this file when I delay the file there are issues, what is the current recommended method for this file?

Some of the JS in cs-classic is still probably used and needed on your site. I believe that lighthouse section is more so to determine what code in cs-classic didn’t run at all. These are things we are moving to different files like cs-sliders as you might have seen and will continue to do to limit the size of JS on everybody’s sites. If you could send me a link to the site I can see what other JS would be good to split to other files as well. Delaying cs-classic is probably going to remove crucial functionality in your site, but you can probably get away with that doing it in our other files. Hope this helped, have a great day.

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