mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 09:04:46 +08:00
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:
@ -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' %>
|
||||
|
@ -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 %>
|
||||
|
Reference in New Issue
Block a user