Add option to defer script?See original GitHub issue
I’ve tested this, and I can’t tell any difference when you add the
defer to the script attribute when preloading, but it would be very easy to support passing that in as an option.
- Created 6 years ago
- Comments:10 (10 by maintainers)
Top GitHub Comments
Nice work @davetimmins - I put in a debugger and I can see that your way does indeed wait the components to be rendered before loading the JSAPI. See https://github.com/tomwayson/esri-react-router-example/pull/28