Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#798 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 7 ngày

@carrythebanner đang làm issue này rồi.

Từ ngày 3/9/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement frontend

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.

Ngôn ngữ chính
JavaScript
Star
30
Fork
26
Merge trung bình
6 ngày 23 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của shift-org/shift-docs

Tất cả issue của shift-org/shift-docs

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.