Insert the <script> tag that monitors browser timing into the <head>
manually. This is to avoid this error:
Skipping RUM instrumentation. Unable to find <body> tag in first 50000 bytes of document.
See also https://docs.newrelic.com/docs/agents/ruby-agent/features/new-relic-browser-ruby-agent/#manual_instrumentation
21 lines
580 B
Plaintext
21 lines
580 B
Plaintext
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<%= NewRelic::Agent.browser_timing_header rescue "" %>
|
|
<meta charset="utf-8">
|
|
<title><%= page_title %></title>
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
|
<link rel="top" title="<%= Danbooru.config.app_name %>" href="/">
|
|
<%= csrf_meta_tag %>
|
|
<%= raw Danbooru.config.custom_html_header_content %>
|
|
<%= javascript_pack_tag "application" %>
|
|
<%= stylesheet_pack_tag "application" %>
|
|
<%= yield :html_header %>
|
|
</head>
|
|
<body lang="en">
|
|
<div id="page">
|
|
<%= yield :layout %>
|
|
</div>
|
|
</body>
|
|
</html>
|