Well now I got the error pinned
down, probably should have mentioned that my javascripts are merged
into a single file, packed with dean edwards jspacker, gzip and
finally saved for cache everytime a single javascriptfile changes...
So I tested to replace my jscombiner class with <script> tags for
every js file, and voila, it works properly again, so I checked my
jscombiner class and commented out the part that gzips the file and
now it works too...
Only thing is that it took abt 5seconds to load it, so I checked the
headers which was the only thing except the javascript in the file.
And removing the content-length took the time down to just 300ms which
is ok for 50k javascript. The only thing is that I cant get it to
cache... I know it's not the right forum for this but if anyone feel
up for the challenge check these out:
if (isset($_SERVER['HTTP_IF_NONE_MATCH'])):
header('HTTP/1.1 304 Not Modified');
else:
header("Expires: Sat, 23 Feb 2008 18:39:34 GMT"); // 1
year from now
header("Content-Type: text/javascript");
header("Content-Length: 38980");
header("Last-Modified: Thu, 22 Feb 2007 23:11:12 GMT");
header("ETag: 1172185872");
header("Cache-Control: max-age=31356000");
endif;
In firebug I never see the if_none_match or if_modified_since, btw
why is content-length important, and is it supposed to be the length
of the gzipped content or the unpacked one?
Kristinn Sigmundsson wrote:
>
> Hi, so this is not a specific jQuery problem that I can point out but
> let me explain my problem. When refreshing a page in FF 1.5 and FF2,
> some images won't load properly. Which images is totally random. When
> I check out the net tab in firebug I see that sometimes images (only
> one per page view though) takes 3-6s to load.
>
> When I check the Request/response headers the images which wont load
> has no response headers but the response tab is showing the image.
>
> These problems doesn't exist at all in IE6 or 7, and only occur when
> refreshing a page and not when clicking a link or typing the url in
> the address bar.
>
> Heh I know this is kinda hard to answer without any code, but the
> thing is that I got alot of javascript bundled in one file and if I
> remove it the page loads perfectly in FF again.
>
> So I'm kinda hoping that someone has had similar issues and know where
> I could start, what could be the cause of this?
>
> I appreciate any help and pointers to solving this matter.
> //Kristinn
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
View this message in context:
http://www.nabble.com/Help-needed%3A-Images-not-loading-properly-in-FF-tf3288279.html#a9150421
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/