This is my first post, and I chose that title for a very specific purpose.
I always believed in learning by practice and for the same reason, I built a lot of redundant small libraries which were basically rip-offs.
One of such library is detectoldbrowsers.js. Which does exactly what the name suggests. It lets you know if you are running on an old browser and allows you to take a procedural decision.
All you have to do is
if(!isBrowserOld()){
// Do your new browser thingy!
}
The library was only a few lines long and had a size of 448B when minified and gzipped.
But, even after all of this, I ended up using that library in two of my projects and it served the purpose. It still performs flawlessly and will forever be part of those projects and be my contribution 😉.
I developed this small library around June 2016 and revisited it this year. I had learned a lot more than I knew back in the time so, I figured why not upgrade this small guy.
So I went ahead created a new landing page and hosted the library using jsdelivr.
https://cdn.jsdelivr.net/gh/akhilarjun/detectOldBrowser.js@v1.0/js/detectOldBrowser.min.js
The moral here is no matter how small the effort looks like, how in-consequential it feels like there is always something to learn from it.
End of the day it isn't the lamest library ever, right? 🤞
Top comments (2)
So, what's the criteria for being an old browser? :)
Apparently this