• Hi there,

    I’m getting this javascript error on all pages from Phast. Is it from the recent update? It was working ok before the last update.

    I am using a separate cache plugin, WP Super Cache and also have Cloudflare Rocket Loader turned on.

    VM8758:11 [Phast] Unable to override document.readyState on this browser: TypeError: Cannot redefine property: readyState
    at Function.defineProperty (<anonymous>)
    at Object.loadScripts (<anonymous>:11:556)
    at Object.onStylesLoaded (<anonymous>:6:410)
    at <anonymous>:9:932
    at <anonymous>:2:6900
    at V (<anonymous>:2:3951)
    at W (<anonymous>:2:4076)
    at U (<anonymous>:2:3869)
    at MutationObserver.x (<anonymous>:2:1507)

    It seems the PhastPress has a conflict with Rocket Loader setting in CloudFlare.

    If I turn off Rocket Loader the error goes away.

    Is it possible to have both PhastPress and Rocket Loader turned on?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi @blockathon,

    PhastPress is not compatible with Rocket Loader. They do more or less the same thing (load all scripts asynchronously), so you need only one.

    If you want to use Rocket Loader and still use PhastPress for CSS and image optimization, turn of all JavaScript optimization features in the PhastPress settings.

    Hope that helps.

    –Albert

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @blockathon,

    Regarding your comment that it worked previously: nothing relevant has changed in PhastPress in how it loads scripts (at least recently), so I would suppose it is Rocket Loader that changed something.

    And by the way, seeing this error in the console does not necessarily mean that your page is broken. But nevertheless I would recommend just using one of either Rocket Loader or PhastPress JavaScript optimization.

    –Albert

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Phast gives JS error’ is closed to new replies.