TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Loading pics from the middle

3 pointsby metaprinterover 13 years ago
The DOM is great and all but I'm increasingly frustrated by slow loading of images on mobile devices. Can some smart person figure out how to load images starting from their center?

1 comment

sp332over 13 years ago
You could use "interlaced" or progressive images. (I don't mean scanlines like old TV signals.) GIF, PNG, and JPG use the same idea: it sends stores the pixels out of order, and progressively fills in the image all over instead of from the top down.<p>Interlaced GIFs use a three-pass system. Interlaced PNGs use a 7-pass algorithm. Progressive JPGs actually decompose the frequencies and send the "most important" ones first. <a href="http://www.libpng.org/pub/png/book/chapter08.html#png.ch08.div.6" rel="nofollow">http://www.libpng.org/pub/png/book/chapter08.html#png.ch08.d...</a>