Overusing Preload And SrcSet ? Pathetic Desperation By Inept Developers?

Jason Knight
CodeX
Published in
11 min readMar 29, 2024

--

Drooling idiot trying to put a square peg into a round hole
Eye Canz Dew Eeet!!! Failwind toweled mi sew!

I came across a real doozy in a FailwindUI template, and felt the need to share. Warning, this article is mostly venting.

It’s well known my low opinion of “my fellow web developers” rooted in the belief that most of them don’t know enough about HTML to even be using CSS or JavaScript. That lack of fundamental basic understanding cascades through every project, resulting in bloat, missed caching opportunities, higher server load, broken to non-existent accessibility, and dozens if not hundreds of other issues.

One of the most common problems created is the quest to layer on more and more code in an attempt to be faster. And another of the things I keep saying over and over:

If someone tells you to add more code to speed up bad code, your bullshit alarm should be going off.

But sadly far too many developers make excuses for their bad code, bad practices, and general ignorance. It is this willful ignorance that allows predatory scams like Tailwind, React, and so forth to sucker nubes and rubes alike.

There ARE many techniques for speeding up a website such as micro-managing your load orders with preload <link> or HTTP 2 Push (both do the same thing), or using “srcset” with the <picture> tag to load a file at an optimal size for the target device. Other techniques like minification and gzip compression can also work wonders. BUT…

That is not an invitation to slather them on everything like a magical salve. If you don’t understand when and where these techniques pay benefits, when they’re just sweeping deeper rooted issues under the rug, and when they will do more harm than good? Well, you’re just sitting there spinning your wheels wasting time and effort for absolutely zero improvement.

An Example Case

It’s almost comedy as within days of my publishing part III of my “HTML Illiteracy” hit piece against TailwindUI, someone contacted me asking if they’ve in fact been saddled up by a scammer using it.

Looking at their “website” — a basic squeeze page with two simple forms — they most certainly had been taken for a ride by the type…

--

--

Jason Knight
CodeX

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse