denofn-selfhosted
denofn-selfhosted copied to clipboard
[UI] use service worker and code splitting
prettier and code editors shouldn't be loaded in immediately, and neither should the same resource be loaded in every time. Thus the solution is two fold:
- [ ] add a caching strategy with the CRA added service worker (also provide a pop-up to update!)
- [ ] use dynamic imports on hungry dependencies like prettier, react code editor, react selectable