• Resolved dvdm

    (@dvdm)


    When we Add the defer attribute to JavaScript files, the wp-admin breaks.

    Console logs
    Uncaught ReferenceError: wp is not defined
    Uncaught ReferenceError: acf is not defined
    Uncaught ReferenceError: tinymce is not defined
    Uncaught TypeError: a is undefined
    etc etc

    I don’t think it’s possible to defer js files in backend. Perhaps you should only check for frontend.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rick Hoekman

    (@rhoekman)

    Thanks for letting me know. I’ll update the plugin that it will only insert this on the frontend. I’ll also update the description with a heads up when using defer.

    -Rick

    Thread Starter dvdm

    (@dvdm)

    That’s awesome Rick, thanks!

    Plugin Author Rick Hoekman

    (@rhoekman)

    Plugin has been updated and should fix this issue. Update will show up any minute now ??

    Thanks again for reporting the issue!

    -Rick

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-admin breaks when using defer javascript option’ is closed to new replies.