denofn-selfhosted icon indicating copy to clipboard operation
denofn-selfhosted copied to clipboard

[UI] use service worker and code splitting

Open jeroenptrs opened this issue 4 years ago • 0 comments

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

jeroenptrs avatar Jul 25 '20 22:07 jeroenptrs