Give your users a better experience by improving client-side performance.
If you're worried about the performance of your Web application, you need to concern yourself not only with what happens on the server, but also with what happens in the browser. Some commercial performance-monitoring solutions already take this into account, allowing you to see how long it takes for elements to render, and then to execute, on your users' browsers. However, there is also no shortage of open-source tools available for you to check and improve the ways in which your client-side programs are executing.
This month, I'm concluding this exploration of Web application performance with a survey of things to keep in mind, as well as tools that help ensure that you're actually doing what you should be.
UglifyJS, for example, can be installed via npm:
npm install uglify-js -g
You can run it on a file with:
Although because that sends output to stdout, you'll likely want to redirect it to a file:
uglifyjs FILENAME > ugFILENAME.js
One tool I have begun to use more frequently is PageSpeed from Google. This collection of tools would appear to be an SaaS, an updated version of YSlow, which was my go-to tool for many years. For example, Google's tools will tell you how mobile-friendly your site is.