Feat: make javascript_include_tag method configurable
What does this MR do and why?
Describe in detail what your merge request does and why.
Reason
The current method javascript_include_tag is not configurable, all tags rendered by this method is derived with defer property which is not a flexible way for using.
Specifically when we have some code which needs to call the method right after the script gets evaluated and executed and the code itself was downloaded as a local file to be included when the request is responded. And the inlined script we loaded to the client contains certain code execution that some code loaded after this one is relying on the inline script.
With this method to set a fixed parameter defer we cannot use it to include tags to the client.
/cc @prajnamas @mtan-gitlab @icbd @zhzhang93 @orozot
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.