Is it possible to programatically include resources in a slice?

Thanks! That fixed it :slight_smile:. I noticed my logic was flawed, as the resources won’t get loaded on each page load, but rather loaded once, so I suppose I either need to make a few payloads: a main one, and ones where they are necessary. Or make a single large payload, which I was doing before. Not sure what is more optimal.

Glad it was solved, and we could be of help! Feel free to mark this topic as solved!