Skip to content

preloading reactJS files #162

Open
Open
@liccy-fuentes

Description

@liccy-fuentes

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..

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions