Below are the utility methods eCSStender exposes via its API.
Attempts to return the folder path to a given resource (a filename). By default, the method assumes a tag value of “script,” but “link” and “img” are also acceptable. If no match is found, the method returns
for...inloops to avoid issues caused by a developer or library’s augmentation of
To dynamically add a script to your page, you can call
eCSStender.loadScript(), passing the path to the script as the first argument. If you’d like to add a callback function (to be run once the file is loaded), it can be supplied as the optional second argument.