I was wondering, are template elements a good place to store json data in the page to be consumed by js?
replies(4):
Any CSP-allowed other script can read that application/json script tag and decode it, but it is no different than reading any other data it has access to like any other html element or attribute.