Your browser already has more built-in features than you think.
Let's be honest: how many npm packages have you installed without checking whether JavaScript or the browser could already do the same thing?
Need to detect when an element enters the viewport? Install a library.
Need to copy text? Install a package.
Need to clone an object? Install Lodash.
Need to make HTTP requests? Install Axios.
Need to format dates? Install Moment.js.
But here's the thing:
Modern browsers have evolved. And some of the dependencies we used to consider essential are no longer necessary for everyday tasks.
The Web Platform provides powerful native APIs that can help you reduce dependencies, simplify your code, improve performance, and keep your bundle smaller.
In this article, we'll explore 15 things you can do without installing another npm package.
Let's get into it.
1.…