that’s an special type of comment (cfr. the exclamation mark) typically used to hold licensing info. as such, JS optimizers (including JS minify which AO uses internally) leave those comments in.
hope this explains,
frank
Any way to go around this? i would love if google pagespeed test would not complain about a few bytes that could be minified…
Well, if you’re (a little bit) into coding, you could hook into AO’s autoptimize_js_after_minify filter (as applied here) to remove the “important comment block” yourself.
frank
Its working, thanks! I commented out that line 191 and now it removes all the comments…
Google pagespeed score stays the same without that extra 1KB ( gziped I guess its even less ) so i guess its no use to do this… but my client will be happy.
I commented out that line 191 and now it removes all the comments…
that’s weird; line 191 does not remove comments, it’s a wordpress filter to alter the optimized JS (which would allow you to remove the comment yourself, if you would hook into that filter).
but if you’re happy, and the client will be happy, then who am I to complain? 😉
kind regards,
frank