Open
Description
I'm trying to preload my reactJS files using preloadJS, however the react js files need to be name as type="text/jsx".
On my array of items to preload I'm adding a mimeType: "text/jsx"
for any react file.
In the handleFileLoad
event I'm trying to do: document.body.appendChild(event.result).setAttribute("type", event.item.myType);
However, by the point I get to do that the file has been already appended to the body and executed.
NOTE: this is not an issue, just trying to find the best workaround for my situation..