Support » Plugin: Flying Scripts » Disable rewriting HTML if admin

  • Resolved 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 🙂

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


    @snibbo71 fixed in v1.1.8

    Thread Starter snibbo71


    That is seriously the quickest response to a post ever 🙂

    Thanks mate – that’s awesome

    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.