Replace stylesheet_link_tag_defer with universal_stylesheet_link_tag
The Rails helper stylesheet_link_tag_defer adds the attribute media set to all to stylesheet link tags. In the past, we used this as a feature to 'defer' loading these link tags, compared to the ones which had a media set to print. This behavior was removed and this commit cleans up the helper stylesheet_link_tag_defer by replacing it with the new helper universal_stylesheet_link_tag.
显示
- app/helpers/application_helper.rb 2 个添加, 10 个删除app/helpers/application_helper.rb
- app/views/jira_connect/subscriptions/index.html.haml 1 个添加, 1 个删除app/views/jira_connect/subscriptions/index.html.haml
- app/views/layouts/_diffs_colors_css.haml 2 个添加, 2 个删除app/views/layouts/_diffs_colors_css.haml
- app/views/layouts/_head.html.haml 7 个添加, 7 个删除app/views/layouts/_head.html.haml
- app/views/layouts/component_preview.html.haml 1 个添加, 1 个删除app/views/layouts/component_preview.html.haml
- ee/app/views/groups/billings/index.html.haml 1 个添加, 1 个删除ee/app/views/groups/billings/index.html.haml
- ee/app/views/groups/discovers/show.html.haml 1 个添加, 1 个删除ee/app/views/groups/discovers/show.html.haml
- spec/helpers/application_helper_spec.rb 0 个添加, 6 个删除spec/helpers/application_helper_spec.rb
- spec/views/layouts/_head.html.haml_spec.rb 1 个添加, 1 个删除spec/views/layouts/_head.html.haml_spec.rb
加载中
想要评论请 注册 或 登录