shift-org / shift-org/shift-docs
Conditionally load FullCalendar Javascript files only on specific pages where they're needed
Open
@carrythebanner is already working on this.
Since Sep 3, 2024.
enhancement
frontend
- Dominant language
- JavaScript
- Stars
- 30
- Forks
- 25
- Avg merge
- 9m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.