Skip to content

Commit

Permalink
DEV: adds server:after-body-open (#14106)
Browse files Browse the repository at this point in the history
This change is to allow to add a node at the top of body. This is currently done through DOM in a plugin which is causing a full Recalculate Style.
  • Loading branch information
jjaffeux committed Aug 24, 2021
1 parent ff367e2 commit eb52abf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/layouts/application.html.erb
Expand Up @@ -66,6 +66,10 @@
</head>

<body class="<%= body_classes %>">
<%- if allow_plugins? %>
<%= build_plugin_html 'server:after-body-open' %>
<%- end -%>
<%= render_google_tag_manager_body_code %>
<noscript data-path="<%= request.env['PATH_INFO'] %>">
<%= render partial: 'header' %>
Expand Down
4 changes: 4 additions & 0 deletions app/views/layouts/no_ember.html.erb
Expand Up @@ -19,6 +19,10 @@
<%- end -%>
</head>
<body class="no-ember <%= @custom_body_class %>">
<%- if allow_plugins? %>
<%= build_plugin_html 'server:after-body-open' %>
<%- end -%>
<%- unless customization_disabled? %>
<%= theme_lookup("header") %>
<%- end %>
Expand Down

0 comments on commit eb52abf

Please sign in to comment.