Why does the "no-js" class NOT get replaced in the Supply Shopify theme when Javascript is enabled?

Highlighted
Tourist
5 0 0

Hi,

This is related to a previous question i asked. https://community.shopify.com/c/Technical-Q-A/What-is-the-purpose-usage-of-the-quot-no-js-quot-class...

I took the default Supply theme and the only change i made was adding a photo for the header logo. I haven't edited the default code at all.

From what i understand, all the "no-js" classes should be replaced with "js" classes in the final html code if Javascript is enabled. This doesn't seem to happen, see the screenshots below using chrome dev tools to inspect the html. Is this a bug in the Supply Shopify theme? Or is there some other reason for it?

 

Thanks

Olly

Capture5.PNGCapture6.PNG

0 Likes
Highlighted
Shopify Partner
382 28 48

@olly_ 

Well, you have to check theme code if there is any issue then it will not work or sometimes developer set "no-js" for stopping other js to that element only.

Thanks & Regards
Akshay Vaghasiya

Shopify Expert | Skype: akshayvaghasiya84
 - Like and Mark as an Accepted Solution if my reply helpful
 - Feel free to contact me on akshayvaghasiya84@gmail.com for any queries
 - Want to modify or custom changes on store hire me .
0 Likes