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.

Lazy Loading Assets

13 pointsby ultimatedelmanalmost 11 years ago

3 comments

theandrewbaileyalmost 11 years ago
Browsers have optimized for "eager" loading. Link your images, CSS, and JS just like you did when you first learned HTML, then configure your server's caching headers. For JS, there's the async attribute.
dustingetzalmost 11 years ago
Article presents incorrect information as truth.<p>Optimize for cache hits, then no requests happen!
评论 #8016209 未加载
评论 #8016045 未加载
评论 #8016013 未加载
wprlalmost 11 years ago
Lazy loading leads to more requests, which leads to more latency, slower apps. Better to handle this stuff as a build step with RequireJS or browserify.
评论 #8016211 未加载
评论 #8015984 未加载