Mobile app version of vmapp.org
Login or Join
Rambettina238

: 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

@Rambettina238

Posted in: #Index #Javascript #Seo

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?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Rambettina238

3 Comments

Sorted by latest first Latest Oldest Best

 

@Shanna517

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:


Is there a text mode browser which supports javascript?
Text based browser that runs JavaScript
Text based webbrowser that supports JavaScript?
Command line browser with js support

10% popularity Vote Up Vote Down


 

@Heady270

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.

10% popularity Vote Up Vote Down


 

@Gretchen104

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme