Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  You can do lazy image loading in just a few lines of javascript, without jquery. Scripts can be deferred, etc.
Those are hacks. I'd rather have a browser that loads stuff really fast and not have to jump through hoops like spriting, etc. If you're really concerned about deferring the loading of images, that could also be a feature of the browser.

Also, consider that asking the question, "why the heck would anyone develop a website that loads that many elements all at once," is like asking, "why the heck would anybody develop a program that doesn't fit on a 1.44MB floppy?".



Why are you loading every single asset on a page that cannot be seen entirely on the screen? Or for a few scrolls?

Why are you loading asssets for the footer when only above the fold is seen on initial page load?

In your floppy comparison, that would be like copying over an entire 16GB SD card just to view a few pictures you took this morning.


HTML is a declarative format, so the presence of an <img> tag doesn't mean it has to be loaded eagerly. You could turn it around and ask why the browser is loading assets that can't be seen.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: