📜 ⬆️ ⬇️

HabraHabr does not save visitors traffic



I looked here at Habr’s html-source and was a bit shocked by the illiterate decision to create a form when I clicked on the “answer” button under the comment. Rather, it is not created, but it is already standard under each comment, just hidden. Why so overload the page with extra code if you can create it once and then move it.
  document.getElementById ('id_element_where_display'). parentNode.insertBefore (document.getElementById ('form_id'); 


It certainly does not bother me (I have 1.2 Mb / s, unlimited), but some users still have a modem, or for example via GPRS.

')

Source: https://habr.com/ru/post/12876/


All Articles