Can custom JS be used to append HTML elements in a Shopify app?

MK13
Visitor
1 0 1

Hi,

we're trying to build a shopify app having the following flow: our javascript parses the content of the product page and sends it with ajax request to our server (via app proxy). Based on the response our javascript  builds html and appends it to the product page.

Initially our idea was to add a script tag to the <head> section of the merchant's store during installation process of our app and the script takes care of the app's functionality, as stated above.

However, we're wondering if shopify allows apps that use custom js to append any html elements to a theme? Or will it expect us to use liquid syntax for instance?

Any help appreciated.

 

 

Replies 0 (0)