• Resolved AlanP57

    (@alanp57)


    The current version of Elementor is adding decoding=”async” to Javascrpt and causing an error: SyntaxError: Unexpected token ‘async’.

    customPaging : function(slider, i) {
            var thumb = jQuery(slider.$slides[i]).data("thumb");
            return "<a><img decoding="async" src='"+thumb+"'></a>";
          },

    This does not happen if I deactivate Elementor. Is there a way to turn off this behavior?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Can you send me your site URL, please?

    Thread Starter AlanP57

    (@alanp57)

    No, that is not really necessary and this test was from my local development environment. Further tests show that Elementor is definitely adding decoding=”async” to all img tags in pages created by Elementor. But in some cases it should be adding decoding=’async’, with single quote marks, as to not break other plugins. Or just give users the option to turn off this behavior.

    Hi,

    Please open an issue on Github page where people will be happy to direct you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Elementor inserts text in Javascript’ is closed to new replies.