mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
1598ad5c4b
Prior to this change, javascript_include_tag was sending a hint using rel="preload" for all scripts, including those of type="module". This causes the browser to make a request to preload the script, but because the rel is incorrect, it won't be able to reuse it. When passing type="module", it should use rel=modulepreload instead. [0] developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content [1] developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link [2] developer.mozilla.org/en-US/docs/Web/HTML/Link_types/modulepreload |
||
---|---|---|
.. | ||
action_view | ||
action_view.rb |