Closed searls closed 3 weeks ago
One workaround for end users is to mask the pin name and explicitly set preload
to false in their own importmap.rb
. It seems to work in that it clears the warning but doesn't break the functionality of /jobs
pin "application-mcj", to: "mission_control/jobs/application.js", preload: false
Not entirely sure why these files even need to be a part of my application layout in the first place 🤔
The vast majority of users of most apps wouldn't have access to Mission Control, right?
Not entirely sure why these files even need to be a part of my application layout in the first place 🤔
The vast majority of users of most apps wouldn't have access to Mission Control, right?
See #163
This one should be fixed now thanks to @henrikbjorn 🙇♀️
Currently, I'm seeing this warning in my browser console everywhere in my app, even though mission control is only available on one authenticated route:
This is because the gem's importmap.rb has every dependency set to
preload: true
, as in:And (I think?) because the engine appends all these paths to the application's importmap config:
Having every user, whether or not they are authorized to see the mission control jobs preload all of its JavaScript seems less than optimal. Is there any way around this?