Problem when javascript compression is enabled

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Jul 30, 2013 12:14 am
Reply with quote
Report this post
Hi

When javascript compression is enabled and checked it with Firebug some errors are displayed. I think this happen because .js compiled is loaded near the end of head tag and some javascript scripts are loaded before. Maybe loading .js compiled at the begin of head tag it would work properly or maybe you are a better solution :)

The errors displayed in any page are as follow:

Uncaught ReferenceError: jQuery is not defined (3 times referencing different index.php lines)

When I go to any of the pages of virtuemart one more error is displayed:

Uncaught TypeError: Cannot set property 'addtocart_popup' of undefined

And add to cart popup not works.

Can anyone help me?

Regards.

P.S. my website is www.juguetitossex.es and in this moment javascript is dissabled
User avatar
Senior Boarder

teitbite
Tue Jul 30, 2013 4:33 am
Reply with quote
Report this post
Hi

Some javascripts cannot be compressed together, that's why in template panel You will see a field to exclude some of the files from compressions. Please start from excluding module scripts first. You may also try to instal easyjquery plugin in case it's a jquery cross versions problem.
User avatar
Moderator


cron