• Resolved ionutmorariu

    (@ionutmorariu)


    Hi Raul,

    When HTML minification is turned on it has no effect on inline scripts. Would be nice when HTML minification is turned on to partially minify the inline JS(only remove blank spaces and return lines and render inline script on one line like HTML minification is done).

    Best regards,
    Ionut

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    Hi,

    I have explained this on some other topics, but basically javascript (especially inline javascript) cannot be minified the same way, because line breaks matter in some scripts.

    If we put all into one line it’s bound to break a lot of use case scenarios, while in reality it may work with a lot others.

    The HTML minification is a third party library (the same used on WP Rocket, W3TC, etc) so it does what it does and I would rather not change it for this.

    Priority is compatibility and doing his will gain only a few bytes maybe.

Viewing 1 replies (of 1 total)
  • The topic ‘Feature request – inline javascript’ is closed to new replies.