Skip to content

Commit

Permalink
add a script
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Nov 22, 2024
1 parent 87c0a10 commit b8d9517
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/dotcom_web/templates/layout/root.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@
</div>
<%= render(__MODULE__, "_footer.html", conn: @conn) %>
</div>

<%!-- Begin unnecessary scripts --%>
<%!-- React isn't even needed on most pages, but in production app.js will
somehow fail to execute unless additional scripts are included here. Let's
revisit this when we either refactor app.js or refactor how we bundle
scripts for production via Webpack. --%>
<script :if={!dev_server?} defer src={static_url(@conn, "/js/react.js")}>
</script>
<%!-- End unnecessary scripts --%>
<!-- Google Tag Manager (noscript) -->
<noscript :if={google_tag_manager_id()}>
<iframe
Expand Down

0 comments on commit b8d9517

Please sign in to comment.