Title: Elementor inserts text in Javascript
Last modified: November 8, 2022

---

# Elementor inserts text in Javascript

 *  Resolved [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/elementor-inserts-text-in-javascript/)
 * 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)

 *  [Elementor Team](https://wordpress.org/support/users/ozyeger/)
 * (@ozyeger)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/elementor-inserts-text-in-javascript/#post-16180534)
 * Hi,
 * Can you send me your site URL, please?
 *  Thread Starter [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/elementor-inserts-text-in-javascript/#post-16181184)
 * 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.
 *  [Elementor Team](https://wordpress.org/support/users/ozyeger/)
 * (@ozyeger)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/elementor-inserts-text-in-javascript/#post-16182259)
 * 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.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Elementor Team](https://wordpress.org/support/users/ozyeger/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/elementor-inserts-text-in-javascript/#post-16182259)
 * Status: resolved