CSS files combined into .html or .js files #412

Closed
GoogleCodeExporter opened this Issue Apr 6, 2015 · 9 comments

Comments

Projects
None yet
1 participant
Originally reported by asif.iquebal on Issue 253:

There is one issue which i am facing in css combine. I have two css call in my 
web page, which gets combined into a ".html" file and some time to ".js" file 
extension.  Also need to mention that, this is not happening every time. But 
because of this my page gets distorted.

ModPagespeedEnableFilters combine_css,extend_cache
ModPagespeedEnableFilters rewrite_css,rewrite_javascript

ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters collapse_whitespace

ModPagespeedEnableFilters move_css_to_head

~Thanks in advance 

Original issue reported on code.google.com by sligocki@google.com on 4 Apr 2012 at 6:49

Can you provide a link to your page that has this problem?

Are you getting anything in your logs?

This is extremely strange.

Original comment by sligocki@google.com on 4 Apr 2012 at 6:51

Original comment by jmara...@google.com on 5 Apr 2012 at 6:30

  • Changed state: RequestClarification
URL - http://www.timesjobs.com/candidate/career-services.html

Within the head tag their are two css links-

<link href="http://static.timesjobs.com/newtj_css/css/tj_css/global.css" 
rel="stylesheet" type="text/css"/>
<link href="http://static.timesjobs.com/newtj_css/css/tj_css/search.css" 
rel="stylesheet" type="text/css"/>

The behaviour of css combine is not proper, some times it combine properly, 
some time it combines and creats .html or .js extension file, and most of the 
time it does not combines.

~Thanks,
Asif

Original comment by asif.iqu...@gmail.com on 6 Apr 2012 at 7:36

Confirmed: I loaded this page a few times and got this on the 3rd try:
<link rel="stylesheet" type="text/css" 
href="http://static.timesjobs.com/newtj_css/css/tj_css/global.css+search.css.pag
espeed.cc.Q9ialFWS0e.html"/>

This is what I get when things are OK:
<link href="http://static.timesjobs.com/newtj_css/css/tj_css/global.css" 
rel="stylesheet" type="text/css"/>
<link href="http://static.timesjobs.com/newtj_css/css/tj_css/search.css" 
rel="stylesheet" type="text/css"/>

Very very strange. My *guess* is that we're combining but then some JS is 
borking the URL???

Original comment by matterb...@google.com on 6 Apr 2012 at 12:22

  • Changed state: Accepted
Note: this site (timesjobs.com) is using mod_pagespeed 0.9.18.7.  We have 
released 0.10.21.2 now.

This symptom doesn't look familiar though, so I'm not sure whether upgrading 
would fix this particular problem.

Original comment by jmara...@google.com on 6 Apr 2012 at 12:59

This is a good point though, and at a minimum it will simplify tracking down 
the bug if there is one, since we won't have to consider long-gone 
code/bugs/etc.

Original comment by matterb...@google.com on 6 Apr 2012 at 1:05

I suspect some JS is looking for CSS files and looking for a corresponding JS 
file.  But I don't have evidence about that.

In any case, a recent trunk fix has resolved the issue of returning the wrong 
content type.

Original comment by jmara...@google.com on 10 May 2012 at 8:23

Asif, could you please upgrade and let us know if the issue is resolved?

Original comment by matterb...@google.com on 31 Oct 2012 at 8:38

  • Changed state: RequestClarification
Clarification not happening after >10 months.  Closing.

Original comment by jmara...@google.com on 23 Sep 2013 at 6:34

  • Changed state: NotReproducible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment