The JavaScript on my website loads several JSON to initialize itself.
I would like to preload them so, when the JavaScript will launch an Ajax request on it, they wi
Here is the approach that works both in Chrome and Safari.
fetch('/data.json', { method: 'GET', credentials: 'include', mode: 'no-cors', })
This answer contains more details and explanation why and how does it work https://stackoverflow.com/a/63814972/1387163