Shop theme JS conflicting with proxy page JS

Shopify Partner
7 0 0

Hello, I have an app which adds proxy page to merchants store. On some themes my proxy page is acting differently because of store themes javascripts. How could I avoid that? For example. <a></a> tags on proxy page should elapse/collapse, meanwhile the theme also includes scroll to top event on <a></a> click event. I use for noConflicts.

jQuery.noConflict(true);

 

0 Likes
Highlighted
Community Manager
Community Manager
492 21 53

Hi @znevel,

 

If my understanding of JS and CORS is that JS on the parent page can't interact with the child page in the iframe. Can you share an example of a page where a conflict is happening so I can see for myself and investigate further?

 

Cheers,

0 Likes