I'm having a weird issue that I can replicate sometimes and only in Microsoft Edge. On some pages on my site, sometimes my main style sheet does not load (only my critical css). I verified that I did not see any errors in Developer Tools.

I'm guessing this is how my main css is added:

<link type="text/css" rel="stylesheet" href="/sites/default/files/advagg_css/css__fQOpwieSv5u9MLUdCJW8AX3ysBkVaiLC0mNO9bCuF8c__FLUdFFsRYhU7NN2T4QA7b0pMyQP1W1hRmVlZ5H2Saxs__sq6B6dIZCxhnK6op34i0_MkLadmDDYLWNc-Y9yWUjsQ.css" media="all" as="style" onload="window.advagg_mod_loadcss = function() {if (window.jQuery) {if (jQuery.isFunction(jQuery.holdReady)){jQuery.holdReady(false);}} else {setTimeout(advagg_mod_loadcss, 100);}};setTimeout(advagg_mod_loadcss, 200);this.onload=null;this.rel='stylesheet'">

If I reload the page it works fine after that and never happens again. It's almost if I visit a page that was not cached or something.

Has anyone seen this before?

Comments

albertski created an issue. See original summary.

albertski’s picture

Issue summary: View changes
albertski’s picture

I had an older version of Microsoft Edge (14) and I could not reproduce the problem. It looks like it only happens in Microsoft Edge 17.

albertski’s picture

I don't believe that this is an Advanced CSS/JS Aggregation module issue but it may be a Microsoft Edge issue.

I did another test and updated my style sheet so that it only had the following lines:

* {
  color: green !important;
}

This way if I see my text green I know the css file loaded and since there is no other style there is no way that it can be from a malformed style sheet. Also, I updated my html.tpl.php and hardcoded so that it only prints a couple heading tags. This way I know it has nothing to do with html tags.

I kept refreshing the page and I did find that sometimes my color was not green so that means the style sheet did not load at all (even though in developer tools it shows it loaded from cache).

albertski’s picture

Title: Style Sheets not loading Intermittently on Microsoft Edge » Style Sheets load Intermittently on Microsoft Edge
mikeytown2’s picture

Category: Bug report » Support request

Looks to be Edge only issue