Defer/delete JS And Css Unused Files - Question | JoomShaper

Defer/delete JS And Css Unused Files

PS

patrice semiond

SP Page Builder 1 week 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

0
4 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 week ago #213248

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.

0
PS
patrice semiond
Accepted Answer
1 week ago #213294

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

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 week ago #213296

There are others extensions, not only JCH_Optimize.

Yes, I fully agree, I will ask.

0
PS
patrice semiond
Accepted Answer
1 week ago #213300

i try all and not good sucess for now !

thanks

0