Hi! I think my question would be better laid if I write here the scenario of our current set up and the things I want to achieve. We have a Drupal 6 site and freemarker files that are using the same theme as Drupal. Now I have to optimize the loading and reduce the file dependencies of the freemarker files to CSS and JS. I was told to use the minified/optimized JS and CSS of Drupal and delivered it via CDN. But using those minified and CSS alters the design of the freemarker pages. I'm still not sure the solution for this. Thanks for your help in advanced.
+1
A:
Validate all of your CSS and look for parsing errors or warnings and correct them. This should prevent layout issues when minifying/optimizing it. I've had this same issues with CSS in the themes of Drupal we created. After fixing parsing errors, I could aggregate just fine.
Kevin
2010-10-21 13:35:59
Hi! KEvin. Thanks for your response. Do you have any tool that you could recommend for checking errors?
liza
2010-10-21 16:34:44
http://jigsaw.w3.org/css-validator/
Kevin
2010-10-21 18:24:40
Thanks again Kevin. I'll take a look and share the results here for the sake of others who might have same questions. =)
liza
2010-10-22 06:58:00
Hi! Kevin. I've already validated the CSS and fixed some parse errors. The thing is, the siFR is not actually working. =(
liza
2010-10-22 09:46:50
So i validated that the problem is the minified JS. =(
liza
2010-10-22 10:14:43
Can you use a packed version instead?
Kevin
2010-10-24 23:18:15
when you said packed version, what does it mean? Is it the packed jquery? Do you have any other idea on how I can reduce the number of file dependencies in a single page?
liza
2010-10-25 07:55:11
Whenever I have issues with minified js I look for the packed version. Jquery used to have one.
Kevin
2010-10-25 14:10:34
I see. thanks for that tip Kevin. I decided to use the non-minified js and serve it via cloudfront. Thanks for your time and help.
liza
2010-10-27 16:09:05
anyways, any tool that you can recommend when combining js files?
liza
2010-10-29 06:15:54
A:
I may be stating the obvious here, but if you're using the same CSS on two sites and the visual results aren't the same, the markup must be different. So either your markup needs to be changed on one of the sites, or the CSS needs to be made more general to work with both types of markup.
Scott Reynen
2010-10-21 17:14:39
Hi! Scott. Thanks for sharing your thoughts. In a way, you are really right. However, I'm working on reducing the file dependencies of the freemarker pages. I'll let you know what I found out. Thanks!
liza
2010-10-22 07:52:41