lib/core/utils/preload-cssom.js
function parseCrossOriginStylesheet(url, options, priority) {
	const q = axe.utils.queue();

	if (!url) {
		return q;
	}

	const axiosOptions = {
		method: 'get',
		url,
		timeout: options.timeout
	};

	q.defer((resolve, reject) => {
		axe.imports
			.axios(axiosOptions)
			.then(({ data }) =>
				resolve(
					options.convertDataToStylesheet({
						data,
						isExternal: true,
						priority,
						root: options.rootNode,
						shadowId: options.shadowId
					})
				)
			)
			.catch(reject);
	});

	return q;
}
function parseCrossOriginStylesheet(url, options, priority) {
	const q = axe.utils.queue();

	if (!url) {
		return q;
	}

	const axiosOptions = {
		method: 'get',
		url,
		timeout: options.timeout
	};

	q.defer((resolve, reject) => {
		axe.imports
			.axios(axiosOptions)
			.then(({ data }) =>
				resolve(
					options.convertDataToStylesheet({
						data,
						isExternal: true,
						priority,
						root: options.rootNode,
						shadowId: options.shadowId
					})
				)
			)
			.catch(reject);
	});

	return q;
}
function parseCrossOriginStylesheet ( url , options , priority ) { const q = axe . utils . queue ( ) ; if ( ! url ) { return q ; } const axiosOptions = { method : 'get' , url , timeout : options . timeout } ; q . defer ( ( resolve , reject ) => { axe . imports . axios ( axiosOptions ) . then ( ( { data } ) => resolve ( options . convertDataToStylesheet ( { data , isExternal : true , priority , root : options . rootNode , shadowId : options . shadowId } ) ) ) . catch ( reject ) ; } ) ; return q ; }
Parse cross-origin stylesheets

@param {String} url url from which to fetch stylesheet
@param {Object} options `loadCssom` options
@param {Array<Number>} priority sheet priority
Parse cross - origin stylesheets