can't prevent scripts from loading when they generated with append_javascript_pack_tag #442
Unanswered
benjamindickens
asked this question in
Q&A
Replies: 1 comment
-
Converted it from issue info discussion as that feels more sensible.
Your best bet is probably monkey patching the methods. I think shakapacker/lib/shakapacker/helper.rb Line 105 in 49e4b2c |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Desired behavior:
i want method "append_javascript_pack_tag" to be able to change src attribute to data-src in script tag or add another method to get list with urls of all generated chunks and be able to pass as string to some custome data-attr.
Actual behavior:
right know i really need to delay loading of all scripts(not executing) on my page and i am not able to. i have been searching a method to help me parse this data some how from this method append_javascript_pack_tag to get src of each generated script and add it myself with some inline js after some event; please help me somehow (( may be there is some another way to complete the task
Setup environment:
Beta Was this translation helpful? Give feedback.
All reactions