Certain websites only showing up in HTML.

Hey apple, i'm using the 2017 macbook pro with no touchbar and just recently this morning certain big websites such as epicgames.com are showing up in HTML code. I tried to search up online a quick fix and all I can find is the solutions for the same problem on a windows OS. Here is a screenshot of my error:User uploaded file

MacBook Pro, macOS High Sierra (10.13.5)

Posted on Aug 14, 2018 11:01 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 15, 2018 9:11 AM

What is happening is that you are not loading the CSS file(s) - these are text files which determine the layout and formatting of the page ('Cascading Style Sheets'). The page works OK for me so there's no inherent problem at their end. If you still seeing it try clearing your browser's cache, or if necessary all its data (though this will remove cookies, which can be a nuisance). Just rebooting your computer might even do it. You could also see what happens on a different browser.

7 replies
Question marked as Top-ranking reply

Aug 15, 2018 9:11 AM in response to Kinsale_Films

What is happening is that you are not loading the CSS file(s) - these are text files which determine the layout and formatting of the page ('Cascading Style Sheets'). The page works OK for me so there's no inherent problem at their end. If you still seeing it try clearing your browser's cache, or if necessary all its data (though this will remove cookies, which can be a nuisance). Just rebooting your computer might even do it. You could also see what happens on a different browser.

Aug 15, 2018 9:22 AM in response to CT

CT wrote:


This is HTML (taken from epicgames.com):


if (typeof window.orientation !== 'undefined') {

document.addEventListener('DOMContentLoaded', function () {

document.querySelector('body').className += ' touch';



Nope, that is not HTML, that is Javascript.


As Roger points out, what is happening is the CSS did not load correctly, so all that is seen is the bare html being rendered by the browser, without any formatting or layout applied to it.

Aug 15, 2018 9:06 AM in response to Kinsale_Films

That's not HTML.


This is HTML (taken from epicgames.com):


if (typeof window.orientation !== 'undefined') {

document.addEventListener('DOMContentLoaded', function () {

document.querySelector('body').className += ' touch';


Anyway, what you have looks to me like what happens when your Internet Service Provider is having some difficulty serving up all the content from web pages. Maybe this will go away on its own.

Aug 15, 2018 10:16 AM in response to Kinsale_Films

This is HTML without Cascading Style Sheet (CSS) decoration. These usually clear up on their own as the web development team notices the problem, rolls their eyes, and corrects it. This can happen when a site uses a local filesystem location to load the CSS, or a web-based code management repository, and something has occurred that blocks access to the CSS code.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Certain websites only showing up in HTML.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.