Javascript not running on newly added section

oh, right. Thanks for the clarification.

I haven’t found a way to go around that. It looks like Shopify takes the JS added in this way and appends it to a scripts file that it loads. So it only does that once the section is actually saved the first time.

The only way around this is to add the JS to an already existing file that is being loaded separately.