Google Chrome Developers769 тыс
Опубликовано 1 июня 2016, 20:58
Lazy loading data and managing flash of unstyled content (FOUC) can be pretty tricky in a single page app. In today's episode I'm going to tackle both of these topics. We'll add a loading screen to our app that uses a spinner to indicate we're waiting on our text content, then we'll use a technique popularized by Medium where we base64 encode a low res version of our images (so we can display them quickly) and then transition to the higher res version once it's had time to download.
Demo source:
goo.gl/iEQs0J
Shop demo:
goo.gl/oX9QEc
app-route docs:
goo.gl/6KzFYk
Polymer Talks from Google I/O:
goo.gl/T2K7XI
Polymer Slack:
goo.gl/9UI2Uu
Subscribe to the Chrome Developers channel at goo.gl/LLLNvf
Demo source:
goo.gl/iEQs0J
Shop demo:
goo.gl/oX9QEc
app-route docs:
goo.gl/6KzFYk
Polymer Talks from Google I/O:
goo.gl/T2K7XI
Polymer Slack:
goo.gl/9UI2Uu
Subscribe to the Chrome Developers channel at goo.gl/LLLNvf