shift-org / shift-org/shift-docs

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

Open
#798 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.