Skip to content

Commit

Permalink
Fix wording in preloading pinned modules docs (#220)
Browse files Browse the repository at this point in the history
* Fix wording in preloading pinned modules docs

* Apply suggestion
  • Loading branch information
javierjulio authored Jan 2, 2024
1 parent f27ec14 commit 5d20b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Unpinning and removing "object-assign"

## Preloading pinned modules

To avoid the waterfall effect where the browser has to load one file after another before it can get to the deepest nested import, importmap-rails uses [modulepreload links](https://developers.google.com/web/updates/2017/12/modulepreload) by default. If you don't want to preload a dependencies, because it'you want to load it on-demand for efficiency, pinned modules can prevent preloading by appending `preload: false` to the pin.
To avoid the waterfall effect where the browser has to load one file after another before it can get to the deepest nested import, importmap-rails uses [modulepreload links](https://developers.google.com/web/updates/2017/12/modulepreload) by default. If you don't want to preload a dependency, because you want to load it on-demand for efficiency, append `preload: false` to the pin.

Example:

Expand Down

0 comments on commit 5d20b21

Please sign in to comment.