-
Notifications
You must be signed in to change notification settings - Fork 534
Double request in Chrome #42
Comments
devtools say that the Is this issue reproducible in any other browsers? Think it's maybe a Chrome bug? Seems this just started happening too... at least per my recollection. |
Well, the good news is that this is solely from the But #41 still stands as something that is kinda broken upstream in the browser. |
So, after a little more research, Here is a reduced test case showing duplicate requests in Chrome 40: http://filamentgroup.github.io/loadCSS/test-chromebug.html |
For what it's worth, with a fresh cache and cookie bin, this issue is not reproducible on our site: http://www.filamentgroup.com/ I wonder if it has to do with gh-pages and/or cross domain css |
The only variable between the php If the file had a So, yes it looks like a Chrome bug, but it does not look like a very common/problematic one. Also of note, Safari 8 did not exhibit these issues. |
Duplicate requests (no caching headers): http://jsbin.com/zeqopa |
Any complaints if I close this one @scottjehl? I feel like it’s just a little too esoteric to be worth going upstream with it? |
Closing. |
Same issue on my end. I've tried your my setup: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Website</title>
<style>critical css…</style>
<script>
function loadCSS( href, before, media, callback ){…};
loadCSS('css/style.css');
</script>
<noscript>
<link href="css/style.css" rel="stylesheet">
</noscript>
</head> DevTools points to: ref.parentNode.insertBefore( ss, ref ); and ss.onloadcssdefined(function() {
ss.media = media || "all";
}); I've also tested it in Firefox and Safari. Firefox works fine, Safari same results like in Chrome |
Reproduced with 250KB locally hosted stylesheet, network connection throttled in Chrome to EDGE.
Some discussion for this took place in #41, but we this needed to be its own ticket.
The text was updated successfully, but these errors were encountered: