This is a general Question:
Consider a plain-html page that hast got some elements which can (if the browser supports) be enhanced by javascript. To do so, javascript needs some additional data, e.g. for relation between displayed entities on the plan-html page.
So my question: To get the additional data, should i make an additional xhr-request oder should i put a script-tag at the bottom of my page, where all the data ist already present in javascript code?