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

Preload all by default #218

Merged
merged 3 commits into from
Jan 1, 2024
Merged

Preload all by default #218

merged 3 commits into from
Jan 1, 2024

Conversation

dhh
Copy link
Member

@dhh dhh commented Jan 1, 2024

An app has to be very large to benefit from partial/on-demand loading. And that's the only time where you wouldn't want to preload your dependencies, because the cost of water falling would be less than the cost of loading it all. For most applications, you'd rather have zero waterfall by default, and load all your JavaScript up front. So that should be the default.

@dhh dhh added this to the 2.0.0 milestone Jan 1, 2024
@dhh dhh merged commit eb34334 into main Jan 1, 2024
40 checks passed
javierjulio added a commit to activeadmin/activeadmin that referenced this pull request Jan 2, 2024
javierjulio added a commit to activeadmin/activeadmin that referenced this pull request Jan 2, 2024
* Preload all pins

rails/importmap-rails#218

* Disable shim for importmaps

Prep for importmap-rails v2 by using the new defaults now, even on v1.

rails/importmap-rails#216
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.

1 participant