src/utils/ExtensionUtils.js
function loadFile(module, path) {
        var url     = PathUtils.isAbsoluteUrl(path) ? path : getModuleUrl(module, path),
            promise = $.get(url);

        return promise;
    }
function loadFile(module, path) {
        var url     = PathUtils.isAbsoluteUrl(path) ? path : getModuleUrl(module, path),
            promise = $.get(url);

        return promise;
    }
function loadFile ( module , path ) { var url = PathUtils . isAbsoluteUrl ( path ) ? path : getModuleUrl ( module , path ) , promise = $ . get ( url ) ; return promise ; }
Performs a GET request using a path relative to an extension module.

The resulting URL can be retrieved in the resolve callback by accessing

@param {!module} module Module provided by RequireJS
@param {!string} path Relative path from the extension folder to a file
@return {!$.Promise} A promise object that is resolved with the contents of the requested file
Performs a GET request using a path relative to an extension module .