Broken by the upgrade to webpacker-6.0.0.rc.6. Webpacker now defaults to loading the Javascript bundle with `<script src="..." defer>`, which means Javascript won't be loaded until after the page loads, which broke the code that records view counts because it uses jQuery and jQuery wasn't loaded yet.
21 lines
594 B
Plaintext
21 lines
594 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", defer: false %>
|
|
<%= stylesheet_pack_tag "application" %>
|
|
<%= yield :html_header %>
|
|
</head>
|
|
<body lang="en">
|
|
<div id="page">
|
|
<%= yield :layout %>
|
|
</div>
|
|
</body>
|
|
</html>
|