I have been using Google’s PageSpeed Insights to optimize my page weight. Many of the things it flags are obvious and easily fixed.
However, two seemingly important steps are outstanding and I would be interested to know how others have dealt with these issues. My remaining issues are:
-
“Enable compression”: according to PageSpeed Insights my application_hype_generated_script.js should be compressed and thereby get an 82% reduction in size. I looked at it and it seems heavily minified - not sure of its potential for further compression. Is there a way to compress this file and still have it be read properly by the browser?
-
“Leverage browser caching” - Apparently PageSpeed insights expects many of the static resources in my project to come with a expiry date or maximum age - is there a way to configure this from within Hype? or in the html file produced during project export?