Behaviors not always existing when Drupal.js fires them

Created on 5 April 2019, almost 6 years ago
Updated 13 August 2024, 6 months ago

I am facing issue where Behaviors are not always found when Drupal.js wants to fire them using Modifications / Recommended (optimized) settings meaning that eg: my nexus menu & map (+ other scripts depending on Behaviors) are not executed

If I reload the exact same page 10 times, it will work about 2 times - and there are no errors in the console

After investigation, my assumption is that it's related to Drupal.attachBehaviors from drupal.js being fired too early - where other deferred scripts haven't managed to be fully parsed yet.

Not loading:

Loading:

Note: By setting the default (safe) settings, I don't encounter the issue anymore.

I have also attached the har files for the 2 cases

πŸ› Bug report
Status

Active

Version

2.33

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.

Production build 0.71.5 2024