Defer/delete JS and css unused files - Forum | JoomShaper
Awaiting an answer SP Page Builder

Defer/delete JS and css unused files

Asked by patrice semiond 10 months ago Last activity 10 months ago

Hi Guys,

It there anyway to do the following things for css/js files :

  • delete them
  • add attributes defer for JS
  • add media print for css

Cause in this example below for example : color-switcher.css et js are laoded but not used on the site, i have disable it in admin but they are loaded.

And in other case, some are loaded sooner that needed and impact googpe speed

Thanks for help

4 replies

Paul Frankowski Senior Staff
10 months ago · edited

Hi Patrice

By using SPPB Settings No, but if you will use JCH_Optimize Pro - (2) will be possible, about (1) I am not sure.

About 3 - you have to add that styles manually, if you really need them. But that in Template Options > Custom Code > Before Head. Of course first you have to create those styles.

patrice semiond Asked this

Hi,

JCH have some big trouble and in my case he can't defer well the script
For manually i know but want to add to sppagebuilder css !

You should ask developper to do this is bug importance to amleiore google speed.
Strange to no think to do that nowaday !

just an option to select the js to defer, same on css.

See you

Paul Frankowski Senior Staff

There are others extensions, not only JCH_Optimize.

Yes, I fully agree, I will ask.

patrice semiond Asked this

i try all and not good sucess for now !

thanks

Log in to reply.