Logo

dev-resources.site

for different kinds of informations.

Paying Attention while Loading Lazily

Published at
6/7/2019
Categories
react
lazyloading
performance
serviceworkers
Author
jeffposnick
Author
11 person written this
jeffposnick
open
Paying Attention while Loading Lazily

What's all this?

This is an interactive project that explores what happens when loading best practices (hashed asset URLs, lazy-loading, service workers) meets single page app usage patterns (long-lived tabs, "fake" navigations via the History API) meets common deployment scenarios (redeployments that don't preserve old URLs).

If you're feeling particularly meta, you can watch a video walkthrough of this material:

How's it work?

  1. Visit one of the loading scenarios below, and leave the page open.
  2. In the Glitch editor, make a change to a component (like About.js)
  3. Using the Glitch console, run webpack --config=path/to/webpack.config.js to rebuild the scenario you have open.
  4. You've just "redeployed!" Navigate around the open scenario page see what works (and what doesn't).

(Updating the web app's JavaScript won't trigger an automatic rebuild, though updating server.js will.)

Loading scenarios to try

Learn more

Loading JavaScript

Service workers

HTTP serving

serviceworkers Article's
30 articles in total
Favicon
Service Workers: Revolutionizing Modern Web Apps
Favicon
Building Progressive Web Apps in Angular (using pwafire)
Favicon
Leveraging Service Workers for Advanced Caching Strategies in PWA: A Deep Dive for Beginners
Favicon
Integrating the Cache API with Service Workers
Favicon
Service worker weirdness in Chrome
Favicon
When service workers met framesets
Favicon
JS Service Workers — An Introduction
Favicon
Service workers in create-react-app v4+
Favicon
Offline caching with serviceworkers
Favicon
Why is an external service via internet, e.g. web-push with GCM needed for service workers to push notifications?
Favicon
Stop Bundling Scripts for Better Web Performance
Favicon
Does dev.to ever just hang and not load for you?
Favicon
Service workers con Workbox 3, tu primera vez
Favicon
Recreando el Parqués/Parchis en ReactJS - Primera Parte
Favicon
Recreando el Parqués/Parchis en ReactJS - Segunda Parte
Favicon
Build a Better Web with Service Workers
Favicon
Turn your angular application into PWA through service worker
Favicon
How to Get Videos to Work in Safari With Gatsby and Service Workers
Favicon
Who's using Service Workers?
Favicon
My MVP that's PWA and SPA with just wordpress. I'm seeing 0.5s loads, would adding service workers improve performance?
Favicon
Let Users Know When You Have Updated Your Service Workers in Create React App
Favicon
Help: Should a new service worker force a refresh to update a PWA?
Favicon
Going offline with IndexedDB
Favicon
sw-tools, a library to rule the Service Workers
Favicon
How to optimize your JavaScript app by using service workers
Favicon
Progressive Web Apps: Caching Strategies
Favicon
Paying Attention while Loading Lazily
Favicon
Launching: Push Notifications For Everyone!
Favicon
What service workers are being used on dev.to and what do they do?
Favicon
Steam Roulette

Featured ones: