Skip to content

Load Swiper only on the home page - #192

Closed
bendichter wants to merge 2 commits into
mainfrom
load-swiper-on-home-only
Closed

bendichter wants to merge 2 commits into
mainfrom
load-swiper-on-home-only

Conversation

@bendichter

Copy link
Copy Markdown
Contributor

The Swiper stylesheet and script (48 KB compressed) are 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 it creates the carousels. Most of the main.js diff is re-indentation.

🤖 Generated with Claude Code

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>
@netlify

netlify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nwborg ready!

Name Link
🔨 Latest commit cd5175b
🔍 Latest deploy log https://app.netlify.com/projects/nwborg/deploys/6ac936d19008ec0008862895
😎 Deploy Preview https://deploy-preview-192--nwborg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…me-only

# Conflicts:
#	layouts/partials/essentials/head.html
@bendichter

Copy link
Copy Markdown
Contributor Author

Superseded by #206, which combines this with the related PRs. The commits here are included there unchanged.

@bendichter bendichter closed this Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant