For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hi,
I'm developing theme extension for my app, i can use react on admin side but on I'm consufed about How can i use React or JQuery for theme extension development?
Solved! Go to the solution
This is an accepted solution.
Hi Ahmetalan,
It's not possible to include external JS libraries or frameworks in theme app extensions - this is an intentional limitation to ensure that merchants' storefronts remain as performant as possible. You can include your own JS within the /assets folder, I'd recommend manually adding whatever JS you need to a file within the app project.
Hope this helps,
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hi Ahmetalan,
It's not possible to include external JS libraries or frameworks in theme app extensions - this is an intentional limitation to ensure that merchants' storefronts remain as performant as possible. You can include your own JS within the /assets folder, I'd recommend manually adding whatever JS you need to a file within the app project.
Hope this helps,
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Your answer makes sense but still I need to load jquery and Jquery UI in my theme app extension and I am stuck in loading it. I know external libraries are not recommended but this is a special use case, is there anything which can be done?
I have looked into attempting this myself before, but I couldn't find a way to connect with an external library.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog