• Resolved msilb0r

    (@msilb0r)


    Hello,

    when I activate the plugin, it will break the site by adding
    async='async' to every script line.
    Since WordPress uses Gutenberg officially with Version 5.0 the wp-polyfills-*-min.js are added in a special way.

    Code:

    <script type='text/javascript'>
    ( 'fetch' in window ) || document.write( '<script async='async' src="https://example.com/wp-includes/js/dist/vendor/wp-polyfill-fetch.min.js?ver=3.0.0"></scr' + 'ipt>' );( document.contains ) || document.write( '<script async='async' src="https://example.com/wp-includes/js/dist/vendor/wp-polyfill-node-contains.min.js?ver=3.26.0-0"></scr' + 'ipt>' );( window.FormData && window.FormData.prototype.keys ) || document.write( '<script async='async' src="https://example.com/wp-includes/js/dist/vendor/wp-polyfill-formdata.min.js?ver=3.0.12"></scr' + 'ipt>' );( Element.prototype.matches && Element.prototype.closest ) || document.write( '<script async='async' src="https://example.com/wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js?ver=2.0.2"></scr' + 'ipt>' );
    </script>

    Error:

    Uncaught SyntaxError: missing ) after argument list

    Kind regards.

    • This topic was modified 5 years ago by msilb0r.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-polyfill error’ is closed to new replies.