Repository navigation
Stop loading unused CSS and JavaScript on every page - #206
Open
bendichter wants to merge 10 commits into
Open
bendichter wants to merge 10 commits into
bendichter wants to merge 10 commits into
Conversation
main.js attached the "show more" and "show less" handlers without checking that the buttons exist. They are only rendered on the Team page, and only when a group has more than eight members, so the script threw a TypeError on every other page. Most of the diff is re-indentation. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
head.html compiled plugins.scss twice and linked both results: an unminified copy before style.css and a minified copy after it. The second copy repeats every rule of the first later in the cascade, so the first had no effect on rendering. This removes it, which drops a 280 KB render-blocking stylesheet from every page. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every page loaded both icon fonts, and Font Awesome was used for 16 icons on the events, FAQ and Supporting NWB pages. Those now use the equivalent Bootstrap Icons, so the Font Awesome stylesheet (and its 156 KB font on the pages that used it) is no longer loaded. Bootstrap Icons has no brain icon, so the fallback for an activity without a logo on Supporting NWB uses a network diagram instead. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Swiper stylesheet and script (48 KB compressed) were loaded on every page, and only the home page has carousels. They are now included only there, and main.js checks that the library is present before creating the carousels. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Conflicts: # layouts/partials/essentials/head.html
…me-only # Conflicts: # layouts/partials/essentials/head.html
✅ Deploy Preview for nwborg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This was referenced Oct 11, 2026
Contributor
Author
Before and after"Before" is the production site and "after" is this PR's Netlify deploy preview, both at 1440 px wide. Events page: the calendar, map pin and tag icons are now Bootstrap Icons
Supporting NWB: the fallback icon for MICrONS changes from a brain to a network diagram
The other changes are not visible on the page. The 🤖 Generated with Claude Code |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Combines four small PRs that each remove something every page loads but does not need. Each one is a separate merge commit, so they can be reviewed one at a time.
head.htmlcompiled and linkedplugins.scsstwice. The first copy had no effect on rendering, and removing it takes a 280 KB render-blocking stylesheet off every page.TypeErrorthatmain.jslogged on every page except Team.Most of the
main.jsdiff is re-indentation, so it is easier to read with whitespace hidden.The combined branch builds with Hugo 0.152.2 and produces the same 165 pages as
main.Supersedes #187, #189, #191 and #192.
🤖 Generated with Claude Code