A tiny library to help load ArcGIS API for JavaScript modules in non-Dojo applications
APACHE-2.0 License
Bot releases are hidden (Show)
Published by tomwayson over 5 years ago
See https://github.com/Esri/esri-loader#overriding-arcgis-styles
insertCssBefore
option to insert CSS link before an existing elementPublished by tomwayson almost 6 years ago
Thanks @jgravois!
Published by tomwayson about 6 years ago
Published by tomwayson over 6 years ago
Published by tomwayson over 6 years ago
Published by tomwayson over 6 years ago
loadScript()
takes a css
option to load stylesheet by URLPublished by tomwayson over 6 years ago
loadCss(url)
to inject a stylesheet link (thanks @SimplyAutomationized)Published by tomwayson almost 7 years ago
In the spirit of Ember's principle of "stability without stagnation", this major release doesn't add any new functionality. It primarily removes the callback-based APIs (bootstrap()
and dojoRequire()
) that were deprecated at v1.5.0 in favor of the new promise-based APIs (loadScript()
and loadModules()
) introduced in that release.
There are a couple of additional breaking changes introduced in this release that there were no deprecation warnings for.
First, isLoaded()
no longer checks for the existence of a script tag w/ the data-esri-loader
attribute. Instead it checks for a global require()
function that looks like Dojo's require()
. This is the behavior that the new promise-based APIs have been using.
Second, the UMD build is no longer distributed at the root of the /dist folder - which could break build tooling that uses hard coded paths to that location (rather than relying on package.main
).
All in all, most users that have been using only the new promise-based APIs introduced in v1.5.0 should be able to upgrade to 2.0 without any changes to their code and see a benefit in reduced file size.
See the CHANGELOG for history of changes from 1.5.0 to 2.0.0.
Special thanks to all the community members that have helped make v2.0 a reality, especially @nicksenger, @remotesc2, @tgeorges, @veonline, and @ziveo!
Please keep your suggestions and PRs coming!
Published by tomwayson almost 7 years ago
Published by tomwayson almost 7 years ago
Published by tomwayson almost 7 years ago
script.dataset
is undefined
in IE10 #67
Published by tomwayson almost 7 years ago
Published by tomwayson almost 7 years ago
bootstrap()
and dojoRequire()
A huge thanks to @nicksenger for inspiration, code, and insights on how to finally make the leap to a promise based API. 🎉
Published by tomwayson almost 7 years ago
Published by tomwayson almost 7 years ago
window.dojoConfig
by passing as an option to bootstrap()
Published by tomwayson almost 7 years ago
bootstrap()
is called multiple times w/o a callbackPublished by tomwayson about 7 years ago
Thanks @ziveo!
Published by tomwayson over 7 years ago
Now isLoaded()
only returns true if the script tag has the data-esri-loader
attribute.
This is a small, but breaking change, hence the major version bump
Thanks @kgs916!
Published by tomwayson over 7 years ago
Published by tomwayson over 7 years ago
add default export
use rollup to create umd build w/ global ('esriLoader')
move source to src folder and rename to esri-loader
added CHANGELOG