Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve lit static bundle size #160

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

digitalsadhu
Copy link
Member

After discussion here lit/lit.dev#1285 I've had a crack at improving things re: the Lit static bundle.

This PR reduces the bundle size of the Lit static bundle from 8kb to 1kb at the cost of an extra request.
However, since the mapping is to the main lit bundle, in most cases the user will already have this file in browser cache and won't pay the hit. (Also since the main lit bundle is typically preloaded).

@digitalsadhu digitalsadhu merged commit a8333ce into main Jan 2, 2024
@digitalsadhu digitalsadhu deleted the improve_lit_static_bundle_size branch January 2, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants