Jump to content

Adding external JS while CCC is enabled


Recommended Posts

Hi,

In order to improve performance, I want to use jquery from Google CDN.

I added the following line in FrontController.php to accomplish this:

Tools::addJS('http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js');



This works fine as long as JS CCC (combine,compress,cache) is not enabled. When it is enabled, the CCC tries to combine this external JS as well (is this a bug?).

I'm using Prestashop 1.4.0.5.

There are other ways, for example include the external JS directly in header.tpl but I'm not sure what is the recommended approach.

Any ideas?
Thanks!

Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • Create New...