Skip to content

Commit

Permalink
Don't preload any JS in importmap.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
veganstraightedge committed Jan 17, 2025
1 parent f0d3963 commit a210b23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/importmap.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Pin npm packages by running ./bin/importmap

pin 'application', preload: true
pin 'application', preload: false

# Our JS files
pin 'support'
pin 'bootstrap', to: 'bootstrap.min.js'
pin 'support', preload: false
pin 'bootstrap', to: 'bootstrap.min.js', preload: false

# Hotwired JS https://hotwired.dev
pin '@hotwired/stimulus', to: 'stimulus.min.js', preload: true
pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js', preload: true
pin '@hotwired/stimulus', to: 'stimulus.min.js', preload: false
pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js', preload: false

pin_all_from 'app/javascript/controllers', under: 'controllers'
pin_all_from 'app/javascript/controllers', under: 'controllers', preload: false

0 comments on commit a210b23

Please sign in to comment.