1 year 4 months ago - 1 year 4 months ago#10493by boucdur
I discovered a few days ago that JVE doesn't work smoothly when using JCHoptimize as well.
Apparently the jve js script changes slightly each time a page reload.
JCH groups all the js scripts in one and cache it. But as jve changes it creates a new js all the time instead of using the cached file.
first of all, thank you for activating a support subscription.
The reason is that I need to do an Ajax request to a URL that is not cached. I use the core functionality here (just like the core vote plugin) to count the votes. If I wouldn't add the timestamp to the URL, then the rating function of the article component wouldn't be executed and the rating wouldn't be counted. This is an issue that exists in the core vote plugin.
I get this error on all pages :
ReferenceError: jQuery is not defined
the consequence is that a few of my scripts don't work and first of all JVE
1 year 4 months ago - 1 year 4 months ago#10505by boucdur
I just made the change but I don't see a difference I still get ReferenceError: jQuery is not defined
I tried to enable jquery easy it case it could do something but apprently no.
I tried to exclude jve in the exclusion option, but it had no effects so I removed all the exclusion options
Hmm, then you have more dependencies. You have to try out some variations to find the best setting for your website. It's a common issue of such optimization plugins, there is no one best solution.
Of course you could remove the timestamp from the URL but there is still the session token that is required to count the rating. Without the unique token the content component will not store the ratings at all into the database.