Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditionally load FullCalendar Javascript files only on specific pages where they're needed #798

Open
carrythebanner opened this issue Aug 15, 2024 · 0 comments

Comments

@carrythebanner
Copy link
Collaborator

Currently:

  • Calendar CSS and Javascript are only loaded on calendar pages (e.g. not on the About page)
  • Which calendar CSS is loaded is determined by page type (e.g. we only load grid styles on pages that display the calendar grid)
  • However, we still load all calendar Javascript on any calendar page, including when it's not used

The FullCalendar JS files are are some of the weightier JS, so if we don't load those on the regular /calendar or /addevent pages we could save a decent chunk of bandwidth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant