How to Load js and css in proxy page?

Hi team,

Can anyone let me know on how we can load client js and css on the proxy page? I switched from blocks to proxy and now unable to load js and css while using proxy.

Thanks

Hi Khasim,

I found this older forum post that looks to address this: Does anyone have an example of serving a JS file using App Proxy? - Shopify Community

You’d serve the JS file by setting the response content-type to text/javascript . Or serve text/html and a script tag with the JS from some CDN or your own server.

Would this work for you?

1 Like

If I use text/html or text/javascript, page is rendered without header and footer. Header and footer appears when I add application/liquid in the content-type.

Is there any other way to load js and css along with displaying header and footer.

Thanks