Whenever I visit this ASPX page, the stylesheets sometimes fail to load. There is no request made and even checking the network log in Chrome's debugger confirms that it didn't request or load from cache. Interestingly, all other resources such as images and JavaScript files load without any issues. The unusual thing about this site is that it loads a stylesheet via JavaScript, which always works fine. There's also an iframe on the page and its CSS always loads correctly too. This issue seems to occur randomly, maybe around 1 out of 10 times. I can't recall if it happens when testing locally, but it occurs consistently across three different IIS servers. Strangely, the file shows up in the sources tab of Chrome DevTools. Could this be a bug in Chrome or something related to how the closing tags are written in the links? Has anyone else encountered this problem before?
<head>
....
<link type="text/css" rel="stylesheet" href="~/css/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1c6f75687932717572327f6f6f236a215c51778">[email protected]</a>" />
<link href="~/lib/tabulator/css/tabulator.css" rel="stylesheet" />
<link id="glcss" type="text/css" rel="stylesheet" href="/css/empty.css">
</head>
There is JavaScript code that runs during the initial loading of the page, just before document rendering, which sets a stylesheet for the page. I'm not sure if this could be causing Chrome to randomly ignore the other CSS documents. However, this particular stylesheet always functions correctly.
var stylesheetPath = _pth + "/css/custom_gl_theme_" + dd.value + ".min.css?v=" + _v;
$('link[id="glcss"]').attr('href', stylesheetPath);
this.value = dd.value;