When I turn on the aggregate js option on my drupal commerce (kickstart 1) site, the font-your-face (dealt with by FYF module) and the slideshow on the main page stop working. The fonts seem to show up fine on the other pages.
Does anyone has any idea why it might be so?
I obtain a "syntax error" in the JS console.
-
1Please provide us with errors from your JS console. I just tried it on kasgard.pl and font your Face works flawlessly, so it's not a bug in core or this module.– MołotCommented Nov 28, 2013 at 11:42
-
woops @Mołot thanks for this suggestion it turned out that the problem was related to the field slideshow module and libraries. I had to replace to use the 2.1.1 version of the imagesuploaded library, as per drupal.org/comment/7874537#comment-7874537– DalmazCommented Nov 28, 2013 at 13:27
-
1Feel free to post that as a self-answer then :) also, the very error message from the JS console could help future users to Google this question, so don't be shy to edit it into a question.– MołotCommented Nov 28, 2013 at 13:28
-
dzięki wielkie ;-)– DalmazCommented Nov 28, 2013 at 13:30
Add a comment
|
1 Answer
It turned out the problem is with the fields slideshow module and its use of js/jquery libraries.
I've realised that JS error happens after calling some slideshow libraries, so i googled for aggregate js / field slideshow.
As per https://drupal.org/comment/7874537#comment-7874537 , I used the 2.1.x version of the imagesloaded library and everything worked nice afterwards.