Drupal main javascript file can't be loaded with "defer" attribute after upgrade to 8.8.1

Created on 8 January 2020, over 4 years ago
Updated 27 January 2023, over 1 year ago

What are the steps required to reproduce the bug?

Add a defer tag to the script tag of the main js file e.g. with ADVAGG module or via EventSubscriber.

What behavior were you expecting?

No problems with the former domready handler (Drupal 8.7.10). Alle Drupal behaviors were added and executed.

What happened instead?

With Drupal 8.8.1 the attachBehaviors function is executed but the behaviors variable contains an array and not an object which is required for attaching all behaviors in the loop.

---

This is a massive performance issue and should be looked at ASAP.

πŸ› Bug report
Status

Fixed

Version

9.5

Component
JavascriptΒ  β†’

Last updated about 1 hour ago

Created by

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.

Production build 0.69.0 2024