开发者

Chrome not loading Stylesheet

开发者 https://www.devze.com 2023-04-09 20:47 出处:网络
Seems like Google Chrome is not displaying my site according to the stylesheet. When the page first load, it loads fine...but then it changes to raw html format towards the end of the page load.

Seems like Google Chrome is not displaying my site according to the stylesheet.

When the page first load, it loads fine...but then it changes to raw html format towards the end of the page load.

It ends up looking like this (you can see web address at the top bar):

[click for full size]

Chrome not loading Stylesheet

I have 2 style sheets, one is an "alternative" that a user can switch between by clicking the Light/Dark buttons at top right of the site.

Why is this happening? I never had a problem before.

My specs: Mac OS X with Googl开发者_如何转开发e Chrome 14.0.835.186


Do you have HTTPS everywhere + Adblock installed? If so, I've found that clicking through google search results will often produce this behavior when the main site has no, or limited https support.

I notice the same behavior, with those extensions, when I search for and click through an XKCD comic, for example.

Temporarily disabling https everywhere, or re-entering the URL without https seems to fix it for me.


Maybe a caching problem on your side. Can you try "Shift+Ctrl+R"?


I tried this on OS X with the same Chrome version as you and everything is rendered correctly for the dark and light versions. It could be a caching problem for you. Hold down the shift key while you reload the page. This will force the browser to get all of the resources and ignore the cached versions.


Had this same issue, spent hours going around in circles wondering "What the hell have I done!", I tried many of the suggestions from this site and many others but the thing that worked for me and I felt kind of stupid afterwards for not trying it was to disable ad-blocker for chrome, followed by a shift+f5 and problem solved.


On my friend's laptop it was caused by some DNS problems. After changing DNS to 8.8.8.8 everything is fine.


Change css charset to UTF8. It fixed my issue.


I had this issue. It started when I added a Chrome extension 'Akamai Debug Headers'. This caused random sites' CSS not to load and displayed CORS errors.

I turned off the extension and it all worked again.

So maybe disable all extensions and then test Chrome

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号