Support » Plugin: Flying Scripts by WP Speed Matters » Disable rewriting HTML if admin

  • Resolved snibbo71

    (@snibbo71)


    Hi there,
    In html-rewrite.php you disable the rewriting of the HTML output for administrators using the obstart function, but in the section that sets up the filter for W3TC you don’t make the same check.

    This seems, in my case, to rewrite the HTML even for administrators as I am using W3TC – which since I am trying to lazy load jQuery breaks all my admin screens 🙂 I don’t need jQuery on the front end so I’m keen to not have to load it.

    I’ve add a if ( is_admin() ) return $buffer; line and get the desired result, but obviously any update to the plugin will overwrite my changes.

    Not sure if this is by design or a bug though so writing just in case 🙂
    Ta!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gijo Varghese

    (@gijo)

    @snibbo71 fixed in v1.1.8

    Thread Starter snibbo71

    (@snibbo71)

    That is seriously the quickest response to a post ever 🙂

    Thanks mate – that’s awesome

    ciekawy

    (@ciekawy)

    Well current state of the plugin does not disable it fully for admin – in a consequence external scripts supposed for lazy load are empty:

    <script type="text/javascript" data-type="lazy" data-src="data:text/javascript;base64," src="data:text/javascript;base64,"></script>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable rewriting HTML if admin’ is closed to new replies.