Strange Jekyll problem: Why does my stylesheet not load in IE after the first load?

https://thebestnameevah.bowtied.io/
After clearing my browser cache, the page will load fine the firs time but any subsequent loads cause it to load without the stylesheet.
I should also note that the page will load fine when the browser tools are open

Hi,
Can’t check in IE, and it loads as expected in Chromium and Firefox ESR.

I wonder if any of this can cause the behaviour in IE:

In the head you first load bootstrap.min.css, then in the main.css you load an older version of the bootstrap.min.css?

I noticed the many javascripts loaded in the head. Maybe if nothing else works, try moving those to the bottom of the page before the body end tag?

It used to be very common for JavaScript to be attached in the head of
the page rather than immediately before the /body tag which is
where most but not quite all modern JavaScript should be attached.
Attaching the JavaScript to the bottom of the page allows the rest of
the page to load faster as it doesn’t have to wait on JavaScript loading
before the page can be displayed.

http://javascriptexample.net/basics28.php

Hope my lame two cents can be of any help.

2 Likes

Chrome is showing this error:

Resource interpreted as Stylesheet but transferred with MIME type text/plain: “https://thebestnameevah.bowtied.io/css/main.css”.

Check your server for correct mime types. Maybe there’s something here that can help also.

2 Likes

Thanks for your reply! I’m using jekyll (a static site generator) so it doesn’t use php. Is there a solution?

Sorry I’m afraid I know nothing about jekyll so we’ll have to wait for someone more familiar with the subject to comment.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.