Lazy loading and DOM optimization