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

Created on 8 June 2020, about 4 years ago
Updated 19 July 2023, 11 months 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.69.0 2024