“Modern” Webpages Suck

These days almost all the web-morons think they have to fill their webpages with random useless crappy javascript for no reason.

Have a look at one example of many: python-gtk-3-tutorial.readthedocs.io. It consists of static content only, nothing that would justify the use of javascript. But anyway they thought it is clever to add tons of it:

wget -q -O - \
https://media.readthedocs.org/javascript/jquery/jquery-2.0.3.min.js \
https://media.readthedocs.org/javascript/jquery/jquery-migrate-1.2.1.min.js \
https://media.readthedocs.org/javascript/underscore.js \
https://media.readthedocs.org/javascript/doctools.js \
https://media.readthedocs.org/javascript/readthedocs-doc-embed.js \
http://python-gtk-3-tutorial.readthedocs.io/en/latest/_static/js/modernizr.min.js \
http://python-gtk-3-tutorial.readthedocs.io/en/latest/_static/readthedocs-data.js \
http://python-gtk-3-tutorial.readthedocs.io/en/latest/_static/readthedocs-dynamic-include.js \
| wc -c
141839

This is almost 140kB of javascript, more than the source text files which are around 100kB for the whole tutorial. Each page contains around 5kB content, so the ratio between javascript and content is 28:1 !

Another big problme is, that the code is written by gardeners or lumberjacks, but not by IT professionals. The bugs in the code make it very unreliable. For example on Aliexpress I get the following message pretty often: Due to network reasons , adding that fails, re-click the "Add to Wish List". But clicking “add to wishlist” again and again and again just results in the same error message. The only thing that helps is reloading the page.

But there are more drawbacks of using javascript, here is an incomplete list:

  • Javascript leads to more bandwith used which:
    • makes the webpage loading slower,
    • causes more load on the server,
    • causes more costs for the bandwith of the server,
    • and uses up the megabytes of my connection which I have to pay!
  • Javascript wastes the memory of my computer which I could better use for productive work.
  • Javascript executes slow and makes me yawn because of the very slow user experience. Many websites are completely unusable on slower machines.
  • Javascript code is neither security reviewed nor signed, it is completely untrusted code running on my machine.
  • Javascript is generally written by hobbyists with not much CS knowledge. That’s one reason these pages are very unreliable.
  • Javascript is often used to make very stupid things like breaking the back button or copy&paste. I don’t know if that is just a result of the stupidity of the coder or if it is done intentionally, no matter why it is done, it is very bad and annoying.
  • Javascript is most of the time written by amateurs, not by well educated IT professionals. Obviously nobody who is at least a little bit sane would want to write code in such an awful language.
  • Javascript code is never tested thoroughly. Or have you ever heard of someone writing a test suite for his webpage?
  • There are probably a lot more…

So please make the world a better place by limiting the use of javascript to only those cases which really need it.

Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>