You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The resource /assets/mission_control/jobs/application-8d538c5b.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
This is because the gem's importmap.rb has every dependency set to preload: true, as in:
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?
The text was updated successfully, but these errors were encountered:
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
searls
changed the title
Does Mission Control's JavaScript need to be preloaded?
Does Mission Control's JavaScript need to be preloaded? [importmaps]
Jun 18, 2024
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?
The text was updated successfully, but these errors were encountered: