WordPress / playground-tools

GNU General Public License v2.0
127 stars 38 forks source link

Browser extension: Zero Loading Time #297

Open adamziel opened 3 weeks ago

adamziel commented 3 weeks ago

Let's make the browser extension load Playground instantly, without any perceivable loading.

https://github.com/WordPress/playground-tools/assets/205419/1628213e-f0a5-4a73-ad6a-cdd339f6bc83

We could preload it on every page, but booting Playground in 15 browser tabs would slow down the browser.

The way forward here would be to:

cc @ellatrix @youknowriad – how easy would that be? Could we "just boot" the Gutenberg framework or fork the standalone Blocknotes editor?

bgrgicak commented 3 weeks ago

@adamziel would this still be needed if Playground had offline support?

With offline support the first load would take longer, but future loads should be quick because all files will be cached.

adamziel commented 3 weeks ago

@bgrgicak I’m not sure — maybe it won’t! Let’s decide once we know how snappy the offline-enabled version is. We could also get fancy and, say, boot invisible Playground in the last three active tabs or so while reaping the rest.

ellatrix commented 3 days ago

how easy would that be? Could we "just boot" the Gutenberg framework or fork the standalone Blocknotes editor?

I'm not sure I'm following. You're talking about a Playground Extension right? Or a standalone GB one?