I am generating some js output for each user using a template called example.js.erb . This is basically a javascript file in which I must specify the unique details of the user. I use this inside the widget for the user.
Is there a way to minimize js when rendering it? Currently javascript is processing correctly, but it has a long form, and I would like to minimize the output in order to reduce the file size and increase the download speed.
source share