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

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.

diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 3446d78..b476b2f 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -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' %>
diff --git a/app/views/layouts/no_ember.html.erb b/app/views/layouts/no_ember.html.erb
index c11948d..51d1f31 100644
--- a/app/views/layouts/no_ember.html.erb
+++ b/app/views/layouts/no_ember.html.erb
@@ -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 %>

GitHub sha: eb52abf076a6a21f7831d8a92b0cdce6901fb68a

This commit appears in #14106 which was approved by eviltrout. It was merged by jjaffeux.