Calendar only rendered when Big Pipe is present

Created on 4 October 2024, 7 months ago

Problem/Motivation

I observed that the calendar was not being rendered for anonymous users. After some troubleshooting, I realized I could also reproduce the problem for authenticated users if the Big Pipe module is disabled.

Proposed resolution

The problem seems to be the DOMContentLoaded event listener used to fire the JS that renders the calendars. Without Big Pipe, that event has already fired before the behaviour is executed. As such, the JS should be updated to fire immediately if the document readyState isn't "loading".

🐛 Bug report
Status

Active

Version

3.0

Component

JavaScript

Created by

🇨🇦Canada mandclu

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024