• Resolved Anonymous User 17612203

    (@anonymized-17612203)


    Why does the plogun does not offer the possibility to minify inline js?

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

    (@alignak)

    Because the plugin only detects code that was properly enqueued, and it’s child dependencies. So if you have a js script and that script has some inline code that was added via wp_add_inline_script() it will work… but if you just added some script manually, it won’t work.

    Version 3 will come out soon and it will capture the page, instead of using this method.
    That should minify all scripts, regardless of how they are added to the page.

    Thread Starter Anonymous User 17612203

    (@anonymized-17612203)

    Sounds great Raul. Hofe version 3 comes soon.

    Does version 3 differentiate between inline js and others? Would be great to have the possibility to choose to minify both (inline and non-inline) or just one. Also a possibility to exclude inline js partly would be helpfull.

    • This reply was modified 5 years, 8 months ago by Anonymous User 17612203.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Minify inline js’ is closed to new replies.