rails/actionview/test
Maximo Mussini dd870eef11 Ensure preload_link_tag preloads modules correctly
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
2022-01-18 18:00:04 -03:00
..
actionpack Execute `field_error_proc` within view 2021-10-29 10:07:04 -04:00
activerecord Add autocomplete="off" to all generated hidden fields (fixes #42610) 2021-09-21 15:57:56 -04:00
fixtures Merge pull request #43368 from FestaLab/render-hash-syntax 2021-12-08 18:13:44 -05:00
lib Enable `Style/ExplicitBlockArgument` cop 2021-09-05 17:06:19 +02:00
template Ensure preload_link_tag preloads modules correctly 2022-01-18 18:00:04 -03:00
ujs Fix spelling in CoffeeScript and JavaScript files [ci skip] 2021-05-05 11:08:33 +10:00
abstract_unit.rb Delete AS::Dependencies.unhook! 2021-08-17 05:18:22 +02:00
active_record_unit.rb Module#const_set is a public method 2020-09-15 17:19:37 +09:00