Technology News

Add Less

When you’re about to start a new website, what do you think first? Do you start with a library or framework you know, like React or Vue, or a meta-framework on top of that, like Next or Nuxt? Do you pull up a speedy build tool like Vite, or configure your webpack?

There’s a great tweet by Phil Hawksworth that I bookmarked a few years back and still love to this day:

Your websites start fast until you add too much to make them slow. Do you need any framework at all? Could you do what you want natively in the browser? Would doing it without a framework at all make your site lighter, or actually heavier in the long run as you create or optimize what others have already done?

I personally love the idea of shipping less code to ultimately ship more value to the browser. Understanding browser APIs and what comes “for free” could actually lead to less reinventing the wheel, and potentially more accessibility as you use the tools provided.

Instead of pulling in a library for every single task you want to do, try to look under the hood at what they are doing. For example, in a project I was maintaining, I noticed that we had a React component imported that was shipping an entire npm package for a small (less than 10-line) component with some CSS sprinkled on top (that we were overriding with our own design system). When we re-wrote that component from scratch, our bundle size was smaller, we were able to customize it more, and we didn’t have to work around someone else’s decisions.

Now, I’m not saying you shouldn’t use any libraries or frameworks or components out there. Open source exists for a reason! What I am saying is to be discerning about what you bring into your projects. Let the power of the browser work for you, and use less stuff!

New Age DAM APIs to Simplify Your Media Workflows
The Web is More Gooder, and Other Observations on Today’s Web Tech

Related Articles

How to Design Your Video Player with UX in Mind

Exploring the Potential of the Metaverse: A New World Awaits
This article explores different video player controls, their purpose, and which controls to pick for specific use cases such as learning platforms, social media platforms, power users, or mobile users.…

How To Successfully Sell On Swiggy?

how-to-successfully-sell-on-swiggy
How To Successfully Sell On Swiggy? Places, where the food is being cooked and subsequently savored, are no longer under the same roof and on the contrary, they are increasingly…

Paytm Technology – Powering Business Through It

paytm-technology-powering-business-through-it
Powering Business through Technology from Paytm Paytm is not simply a payment processing platform. But it has evolved with an intricate architecture where each service is like a product. From…

Importance Of SEO In Web Design Development

importance-of-seo-in-web-design-development
How are SEO and website design connected and what should you foresee during the development of the site to make it both optimized and well-designed? Your website design and SEO…