⚡️ Performance: Combine all delay-loaded chunks into one #313
Labels
area: performance
Improving the speed of games.
package: shenanigans-manager
status: accepting prs
Go ahead and send a pull request to resolve this issue!
Performance Report Checklist
main
branch of the repository.Overview
Right now as of https://github.com/JoshuaKGoldberg/ChooseYourFramework/tree/0a18b19632b5f321e990748ce8ddb9b5588e005f, https://chooseyourframework.dev loads the following scripts from
require.min.js
(so, after the game loads):preact.umd.js
UserWrappr-Delayed.js
hooks.umd.js
(Preact)jsxRuntime.umd.js
(Preact)So many libraries! Let's combine them all into one happy little bundle. Say,
{{ shenanigans.name }}-Delayed.js
(e.g.ChooseYourFramework-Delayed.js
).Additional Info
Tangentially related to #312. It'll be easier for everything to be portable if there's only one chunk to be delay-loaded, and that chunk is plopped into the
dist/
directory.The text was updated successfully, but these errors were encountered: