ribrdb / desynced-tools

Tools for working with behaviors and blueprints from Desynced.
MIT License
4 stars 3 forks source link

Move bulk of code to compiler_bundle.ts #63

Closed swazrgb closed 5 months ago

swazrgb commented 5 months ago

This reduces the size of bundle.out.js which is loaded synchroniously, to the asynchroniously loaded compiler.js instead, which should allow for a faster first page load as this code is only required after the user interacts with the page.

swazrgb commented 5 months ago

I should mention we're only talking about 1mb of code which is dwarved by monaco-editor so it'd probably be fine to just deliver everything in a single bundle.

I assume the reason for the 2 bundles is to optimize the first-page-load speed?