Eickhardt Posted June 23, 2015 Share Posted June 23, 2015 Hello fellow prestausers I'm tasked with enabling CCC/smart cache for CSS/JS on an existing 1.6.0.5 site that I did not build myself. CSS works, but Javascript is causing issues. Mainly "$ is not defined", but I also get a couple of other errors. Probably because of the many modules that are installed on the site (some of them are custom made). I have two questions. Can you provide any advice on how to debug this? What is the proper way to add Javascript in a module so it doesn't break CCC? If I knew, I might be able to fix the modules that are breaking it. I haven't been able to find any information regarding this, and I imagine others would like to know aswell. Thanks in advance! Link to comment Share on other sites More sharing options...
tuk66 Posted June 23, 2015 Share Posted June 23, 2015 See details at https://github.com/rgrove/jsmin-php Link to comment Share on other sites More sharing options...
musicmaster Posted June 23, 2015 Share Posted June 23, 2015 "$ is not defined" suggests that jquery has not been loaded. I had some problems with self added javascript too - although not with jquery. The solution was to disable the option to move javascript to the bottom of the page. Link to comment Share on other sites More sharing options...
Eickhardt Posted June 24, 2015 Author Share Posted June 24, 2015 tuk66: Thanks for the suggestions, I'm reading up on the options now! They look promising. misucmaster: I can't find the option to disable the moving of javascript - are you sure that option exists in v.1.6.0.5? Link to comment Share on other sites More sharing options...
musicmaster Posted June 24, 2015 Share Posted June 24, 2015 Eickhardt, I don't know about PS 1.6.0.5. However, in PS 1.6.0.11 I have it under Advanced Parameters -> Performance. See also the attached image. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now