The Problem
As JS libraries get larger and larger, simply enqueueing them outright in WordPress can lead to longer loading times on pages that might not be using them.
The Solution
A plugin that creates options in the WordPress page editor to toggle enqueueing the js library only on pages where it’s needed.
I’ve created just that in the form of TBC-SwiperJS. Now instead of jamming some JS library into my theme and enqueueing it, I can just install a plugin and flip a switch on the pages I want to slide on.
check out the repository on Github!
This plugin is part of a series with The Build Collective to identify cumbersome elements of the development process and craft common sense solutions to make our dev lives easier.