Async is not working if the script is also set to deferred

Created on 8 June 2020, over 4 years ago
Updated 19 July 2023, over 1 year ago

If you set the scripts to be deferred and async, then the async tag is ignored.

I don't know if this is by design - but I can't understand the use case. Why wouldn't we be able todefer + async js files? The help text specifically indicates "Here there be dragons! Asynchronous JavaScript Execution: Add The async Tag To All Script Tags"

🐛 Bug report
Status

Needs review

Version

4.0

Component

Modifier

Created by

🇫🇷France vdsh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇺Cuba mmaldonado

    Patch #2 works perfect for version 4.1, but when updating to 5 or 6 it gives an error, and it is because in this version the parameter that is passed to the asyncJs() function from FilterResponseEvent to ResponseEvent has changed.

    I upload the patch for version 5 and 6.

Production build 0.71.5 2024