VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kiasati on March 08, 2018, 07:21:10 AM

Title: exclude only product pages in jch_optimize, not category pages
Post by: kiasati on March 08, 2018, 07:21:10 AM
Hi.

in JCH_Optimize configurations there is an option to exclude menu items.
when i check category pages, both category pages and products in them get excluded.

i want only product pages to be excluded. how can i do this?
Title: Re: exclude only product pages in jch_optimize, not category pages
Post by: Studio 42 on March 08, 2018, 14:52:02 PM
I dont know if you can exlude by view JCH_Optimize ?
I dont use JCH_Optimize  anymore, i had to many trouble with it.
Title: Re: exclude only product pages in jch_optimize, not category pages
Post by: kiasati on March 08, 2018, 16:51:15 PM
in recent versions of jch you can exclude menu items.
Title: Re: exclude only product pages in jch_optimize, not category pages
Post by: Studio 42 on March 08, 2018, 17:57:12 PM
You should modify the plugin and check for view=productdetails to exclude product view
Note that if your server support http2, because parallel download, it's most time faster to load multiple files, so JCH optimise is slower then unoptimiszed page, even if some "page speed" tool say it's not.
So better minimize what you can and defer script loading. You have more advantage that use 1 big file and even more if many scripts are loaded, because this are getting form browser cache.
Try for eg my shop home page, it load in 900ms in all including JS+CSS+IMG ... and 600ms after caching, because it use http2 and load all in parrallel in all modern browser
The product page is slower, but because discuss comment and youtube, not my website.
Title: Re: exclude only product pages in jch_optimize, not category pages
Post by: PRO on March 09, 2018, 12:14:46 PM
WHY?
you have conflicts?
Mine works

better to solve the conflicts