I have huge javascript application which uses uncompiled requirejs. I want to make every request made on js
file being serve with mod_pagespeed
How to configure it and make every js files requested minified. Thank you
I'm using apache 2.4.6 on Centos 7.
Out of the box mod_pagespeed
will optimize all javascript files referenced in the html, but with requirejs
most scripts are going to be pulled in dynamically. To optimize those files, turn on InPlaceResourceOptimization
(IPRO). IPRO is also enabled by default in versions 1.9 and newer.
You might also want to check out the optimization docs for requirejs
.