mirror of https://github.com/rails/rails
dd870eef11
Prior to this change, preload_link_tag always used rel=preload This causes the browser to make a request to preload the script, but for modules scripts the rel does not match the type, so the browser can not reuse the prefetched script and discards 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 [3] developers.google.com/web/updates/2017/12/modulepreload |
||
---|---|---|
.. | ||
actionpack | ||
activerecord | ||
fixtures | ||
lib | ||
template | ||
ujs | ||
abstract_unit.rb | ||
active_record_unit.rb |