Title: Scripts with attributes?
Last modified: April 30, 2021

---

# Scripts with attributes?

 *  Resolved [kennybrown](https://wordpress.org/support/users/kennybrown/)
 * (@kennybrown)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/scripts-with-attributes/)
 * Is it possible to use Flying Scripts with scripts that require an attribute (
   i.e. “data-tenant”? When I add our script keyword, the script no longer loads
   no matter how long I wait or interact on the page. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/scripts-with-attributes/#post-14386582)
 * [@kennybrown](https://wordpress.org/support/users/kennybrown/) can you share 
   the URL of the page having this script?
 *  Thread Starter [kennybrown](https://wordpress.org/support/users/kennybrown/)
 * (@kennybrown)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/scripts-with-attributes/#post-14395439)
 * Hi Gijo, the url is [https://www.texassouthwind.com](https://www.texassouthwind.com).
   The script (commerce7.js) is used for loading products/collections/cart for an
   eCommerce platform, and when I set up Flying Pages for optimization, it seems
   to keep the script from working. For example, you will notice the cart icon link
   no longer works.
 * Thank you so much for looking into this!
 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/scripts-with-attributes/#post-14397068)
 * [@kennybrown](https://wordpress.org/support/users/kennybrown/) I just checked
   and I can see “commerce7.js” is loading fine in the network tab.
 *  Thread Starter [kennybrown](https://wordpress.org/support/users/kennybrown/)
 * (@kennybrown)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/scripts-with-attributes/#post-14398093)
 * Hi [@gijo](https://wordpress.org/support/users/gijo/), It actually is not working
   on that URL. You will see that if you try to click on the cart icon (clicking
   on the cart does nothing, but it’s supposed to show a cart on the side. Here 
   is another url for a page that doesn’t show store content, which is supposed 
   to be loaded by the script: [https://www.texassouthwind.com/quick-shop/](https://www.texassouthwind.com/quick-shop/)
 * With Flying Script enabled, all you can see is text, but there is supposed to
   be a list of products you can add to a cart.
    -  This reply was modified 5 years, 1 month ago by [kennybrown](https://wordpress.org/support/users/kennybrown/).
 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/scripts-with-attributes/#post-14398243)
 * [@kennybrown](https://wordpress.org/support/users/kennybrown/) the script is 
   loading. However not every script will be compatible with such delays. You need
   to contact the developer to see if it supports delayed execution.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Scripts with attributes?’ is closed to new replies.

 * ![](https://ps.w.org/flying-scripts/assets/icon-256x256.png?rev=2240444)
 * [Flying Scripts: Delay JavaScript to Improve Site Speed & Performance](https://wordpress.org/plugins/flying-scripts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flying-scripts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flying-scripts/)
 * [Active Topics](https://wordpress.org/support/plugin/flying-scripts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flying-scripts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flying-scripts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/scripts-with-attributes/#post-14398243)
 * Status: resolved