DEV: adds server:after-body-open (#14106)

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.
This commit is contained in:
Joffrey JAFFEUX
2021-08-24 14:35:44 +02:00
committed by GitHub
parent ff367e22fb
commit eb52abf076
2 changed files with 8 additions and 0 deletions

View File

@ -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' %>

View File

@ -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 %>