Skip to content

Commit

Permalink
call javascript_pack_tag only once on the page
Browse files Browse the repository at this point in the history
  • Loading branch information
unasuke authored and amatsuda committed Dec 4, 2024
1 parent ef09b7e commit 34e55dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/layouts/themes/default.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
%meta{property: "twitter:image", content: current_website.meta_image_url}

= stylesheet_link_tag current_website.theme, media: 'all'
= javascript_pack_tag "application"
= append_javascript_pack_tag "application"
:css
#{current_website.font_faces_css}
#{current_website.font_root_css}
Expand Down Expand Up @@ -58,4 +58,4 @@
})
= current_website.footer_content

= yield :javascript
= yield :javascript

0 comments on commit 34e55dc

Please sign in to comment.