JavaScript: Difference between revisions
Tantek.com (talk | contribs) (ββSites break without Javascript: see also antipatterns) |
Tantek.com (talk | contribs) (ββCriticism: More Fragile Than HTML) |
||
Line 12: | Line 12: | ||
* A search engine crawler indexes your site: they may not index text content unless it is accessible without javascript. | * A search engine crawler indexes your site: they may not index text content unless it is accessible without javascript. | ||
** Google's crawler runs at least some javascript these days. | ** Google's crawler runs at least some javascript these days. | ||
** HOWEVER, as of 2014-10-27 Google ''still'' says [http://googlewebmastercentral.blogspot.com/2014/10/updating-our-technical-webmaster.html Make sure your web design adheres to the principles of progressive enhancement] | |||
* A visitor of your website uses a javascript blocker like [https://noscript.net/ noscript], which people sometimes do to [https://www.fsf.org/campaigns/freejs avoid directly consuming proprietary software]. | * A visitor of your website uses a javascript blocker like [https://noscript.net/ noscript], which people sometimes do to [https://www.fsf.org/campaigns/freejs avoid directly consuming proprietary software]. | ||
* A visitor to your site is using an older browser with an incompatible implementation of javascript. Rather than shimming your code to work with these browsers, you can just make your site work without JS. See: [http://responsivenews.co.uk/post/18948466399/cutting-the-mustard Cutting the Mustard] | * A visitor to your site is using an older browser with an incompatible implementation of javascript. Rather than shimming your code to work with these browsers, you can just make your site work without JS. See: [http://responsivenews.co.uk/post/18948466399/cutting-the-mustard Cutting the Mustard] | ||
See also: [[antipatterns]] | See also: [[antipatterns]] | ||
=== More Fragile Than HTML === | |||
Many sites now depend on Javascript to generate the page in a browser, rather than generating the page on the server and sending HTML. This is a more fragile approach: | |||
* http://htmlcssjavascript.com/web/youre-so-smart-you-turned-javascript-into-xhtml/ | |||
== See Also == | == See Also == |
Revision as of 20:04, 12 December 2014
This article is a stub. You can help the IndieWeb wiki by expanding it.
JavaScript (JS) is a popular programming language due to its nearly ubiquitous availability in web browsers, and growing web server availability in the form of node.js.
Criticism
Sites break without Javascript
Javascript seems to have engendered web development methodologies that depend on it. Many sites seem to break without it, become inaccessible.
- http://sighjavascript.tumblr.com/ provides examples of sites that do poorly without javascript
Although it is unlikely that visitors of your site still use a browser that does not support javascript as a technology, there are situations in which this is relevant to you as a webmaster.
- A search engine crawler indexes your site: they may not index text content unless it is accessible without javascript.
- Google's crawler runs at least some javascript these days.
- HOWEVER, as of 2014-10-27 Google still says Make sure your web design adheres to the principles of progressive enhancement
- A visitor of your website uses a javascript blocker like noscript, which people sometimes do to avoid directly consuming proprietary software.
- A visitor to your site is using an older browser with an incompatible implementation of javascript. Rather than shimming your code to work with these browsers, you can just make your site work without JS. See: Cutting the Mustard
See also: antipatterns
More Fragile Than HTML
Many sites now depend on Javascript to generate the page in a browser, rather than generating the page on the server and sending HTML. This is a more fragile approach: