What If?

added by JavaScript Kicks
11/29/2018 9:35:20 AM


Written by Harry Roberts on CSS Wizardry. I was recently conducting some exploratory work for a potential client when I hit upon a pretty severe flaw in a design decision they'd made: They'd built a responsive image lazyloader in JavaScript which, by design, worked by: immediately applying display: none; to the ; waiting until the very last of the page's images had arrived; once they'd arrived, removing the display: none; and gradually fading the page into visibility.