mirror of
https://github.com/withastro/astro.git
synced 2025-03-03 22:57:08 -05:00
* Inline small hoisted scripts This makes it so that small hoisted scripts get inlined into the page rather than be fetched externally. * Ensure we don't inline when there are imports * Fix ts * Update tests with new url structure * Adds a changeset
283 B
283 B
astro |
---|
patch |
Inlines small hoisted scripts
This enables a perf improvement, whereby small hoisted scripts without dependencies are inlined into the HTML, rather than loaded externally. This uses vite.build.assetInlineLimit
to determine if the script should be inlined.