Front end performance overview
Julian Jelfs
Bundling scripts and css
Bundle splitting with dynamic imports
Minify and compress bundles
Optimise images
Lazy load as much as possible (+ low bandwidth mode)
Use appropriate cache headers
Try not to block the UI
Only load what is absolutely necessary
Load it at the right time
Only load it once
Cache everything possible on the client
Updates are (relatively) slow
Don't wait for confirmation
Assume success
Compensate for failure
Merge server state with pending local updates
Create peer to peer connections where possible
Key updates send vie WebRTC *and* the backend
Requires STUN & TURN off-chain infrastructure
By Julian Jelfs