The "Bloated Code" Syndrome: Why I’m Dropping GSAP and Swiper for Vanilla JS
Let’s be honest: modern web development has gotten lazy. Today, to trigger a simple fade-in animation or build a basic image gallery, developers blindly dump tons of third-party code into a project. Why write three lines of clean JavaScript when you can install a massive library, right?
Wrong. Every time I see a simple corporate website or a landing page running both GSAP (for animations) and Swiper.js (for a basic slider), I want to ask: “Why are you using a rocket ship just to cross the street?”
Let’s break down why the obsession with heavy libraries is hurting your business, and why I choose the path of “clean code” for my clients.
Overkill for Everyday Web
Don’t get me wrong: GSAP is an incredible tool. If you are building an advanced promo site with immersive 3D, WebGL, and complex scroll-driven storytelling, heavy artillery is justified. Swiper is an excellent engine if you need nested galleries, dynamic virtual slides, and dozens of custom transitions.
But for 90% of standard websites, these flashy features are completely unnecessary.
When you plug in Swiper just to scroll through three client testimonials, you force your user’s browser to download, parse, and execute megabytes of useless code. The result? The site stutters on mobile devices, and your Google PageSpeed scores drop into the red.
My Solution: A Slider on a “Diet”
This is exactly why I stopped blindly relying on bloated, one-size-fits-all plugins and built my own custom slider. You can see it in action and test it right on this page.
It doesn’t have fancy 3D perspectives, but it:
- Performs its core job flawlessly.
- Weighs a fraction of what popular libraries do.
- Contains zero lines of junk code.
For everyday animations—like elements fading in on scroll, basic tabs, or mobile menus—plain vanilla JavaScript is more than enough. It runs faster, consumes less memory, and doesn’t rely on third-party maintainers.
The Myth of Modern CDNs
Another common mistake is linking these massive libraries through external CDN links.
Years ago, it was believed that CDNs speed up the web because files might already be cached in the user’s browser. In the modern web, due to updated browser security and caching policies, this argument is dead. Using an external CDN just creates unnecessary requests to third-party servers. While the browser connects to a foreign host and resolves the DNS, your user is losing precious milliseconds.
My Rule: If a project absolutely demands a large library, skip the CDN. Host the file locally on your own server or inline the essential code. Local assets load faster and are inherently more secure.
The Takeaway
I meticulously audit every single script I implement for myself and my clients. The web needs to be fast. It’s time to stop bloating websites with heavy scripts for basic UI elements.
I’ve largely moved away from GSAP and massive plugins in favor of clean, vanilla JS—and your website will thank you with higher search rankings and better conversion rates.
Do you want a fast website without unnecessary junk?
Drop your URL (or a competitor's) and we'll run a full audit of speed, technical SEO and compliance — a Loom walkthrough plus a PDF, in 48–72 hours, free.
Get My Free Audit
Keep reading.
All field notes →The Death of Media Queries: How clamp() and Smart CSS Zoom Create Truly Fluid Websites
Stop writing endless media queries for every single breakpoint. Discover how using the CSS clamp() function combined with a smart root-zoom formula creates a truly fluid website that scales flawlessly up to 8K resolutions while staying 100% accessible. (Link to my free generator inside!)
Read article →The "Bloated Code" Syndrome: Why I’m Dropping GSAP and Swiper for Vanilla JS
Loading heavy scripts like GSAP or Swiper for basic animations and sliders destroys your page speed. Here is why I’m switching to vanilla JS, sharing my custom lightweight slider, and debunking the CDN myth.
Read article →Why traditional CMS and pure static sites will disappoint you — and why the future is hybrid.
Page builders are pricey, static requires code, and traditional CMS gets hacked. Here is why Hybrid architecture (WP + Static) is the future of web development.
Read article →