Replies: 2 comments
-
I think it would be useful to be able to append such attributes as Example usage: |
Beta Was this translation helpful? Give feedback.
-
John, just a FYI: I recently updated my Retcon plugin and it now has the ability to add value-less attributes – so you can now do this: {{ getFootHtml | retconAttr('script', { 'async' : true }) }} ...and Retcon will add the async attribute to all script tags returned by getFootHtml. |
Beta Was this translation helpful? Give feedback.
-
When
{{ getFootHtml() }}
outputs scripts which have been queued up with{{ includeJs }}
, the script tag is hard-coded with no ability to addasync
. It would be great if we could some way control/override this, either via config or at runtime via a function parameter.Beta Was this translation helpful? Give feedback.
All reactions