championshuttler.inCreating accordions with native HTMLAccordions are one of the most commonly used UI components for any website. For example FAQs section of the website, where only the question is shown, and when clicked the answer just opens up. Generally, we handle this by creating 2 divs and adding ...Dec 12, 2020·2 min read
championshuttler.inContent Security Policy - protect your website from XSS attacksProblem It's very common while building any project we use certain third party libraries, in the case of Javascript; npm packages, which recursively use more packages, and eventually your code includes a huge chunk of third party code.There is nothin...Dec 8, 2020·6 min read
championshuttler.inHow to call a function on URL change in javascriptModern JS frameworks tend not to reload the page but manipulate DOM and change URL path for internal navigation, for performance and smooth UX. But since there is no page reload, window.onload event does not get triggered for subsequent navigation. W...Dec 5, 2020·3 min read
championshuttler.inHow to Reduce Node Docker Image Size by 10XDockerizing an application is simple, effective, but optimizing the size of Docker Image is the tricky part. Docker is easy to use but once the application starts scaling, the image size inflates exponentially. In general, the node docker image size ...Dec 4, 2020·5 min read