The webpage is in JS but still text browsers are reading the content. How is it?

I was checking the site giftedandtalented.com. first of all the the source code is so cluttered. When i disabled the JS in my browser, except for top navigation nothing showed up but when i checked the site in text browser, the content showed up. How did that happen. does it have an alternate way of reading the site content? my intention was to check if the content is read-able by Google but webcache was not showing up.

why some websites have such cluttered source code?

Replay

If disabling javascript breaks the site, it obviously means that part of the site is dependent on the script.

As for messy code? It doesn't matter as long as it works. Perhaps it is to make it a little more difficult to 'steal' code. Perhaps it is a lazy programmer. Perhaps the site is dynamically created and they haven't put in the work to format the code properly.

It makes no difference to a browser, and that is all that matters.

The site has on the one side noscript areas, which provide content in case javascript is off.

when i checked the site in text browser, the content showed up

On the other side it is possible to deliver the content (and even completely different sites) based on user agent. So if text browser is recognized as a specific user agent, the server could deliver a special site's version, build for such cases.

If you disable CSS, you’ll see the content. So the content is hidden within CSS, without any JavaScript involved (and will likely get displayed via CSS if JavaScript is enabled).

Even if the content would only be shown with JavaScript, note that there are text browsers that run JS. See for example these Stack Exchange questions:

Category: seo Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 11.038 (s). 13 q(s)