function loadCssom(options) {
	const { rootIndex } = options;

	const q = axe.utils.queue();

	const sheets = getStylesheetsOfRootNode(options);
	if (!sheets) {
		return q;
	}

	sheets.forEach((sheet, sheetIndex) => {
		const priority = [rootIndex, sheetIndex];
		try {
			const deferredQ = parseNonCrossOriginStylesheet(sheet, options, priority);
			q.defer(deferredQ);
		} catch (e) {
			// cross-origin stylesheet -> make an XHR and q the response
			const deferredQ = parseCrossOriginStylesheet(
				sheet.href,
				options,
				priority
			);
			q.defer(deferredQ);
		}
	});

	return q;
}
function loadCssom(options) {
	const { rootIndex } = options;

	const q = axe.utils.queue();

	const sheets = getStylesheetsOfRootNode(options);
	if (!sheets) {
		return q;
	}

	sheets.forEach((sheet, sheetIndex) => {
		const priority = [rootIndex, sheetIndex];
		try {
			const deferredQ = parseNonCrossOriginStylesheet(sheet, options, priority);
			q.defer(deferredQ);
		} catch (e) {
			// cross-origin stylesheet -> make an XHR and q the response
			const deferredQ = parseCrossOriginStylesheet(
				sheet.href,
				options,
				priority
			);
			q.defer(deferredQ);
		}
	});

	return q;
}
function loadCssom ( options ) { const { rootIndex } = options ; const q = axe . utils . queue ( ) ; const sheets = getStylesheetsOfRootNode ( options ) ; if ( ! sheets ) { return q ; } sheets . forEach ( ( sheet , sheetIndex ) => { const priority = [ rootIndex , sheetIndex ] ; try { const deferredQ = parseNonCrossOriginStylesheet ( sheet , options , priority ) ; q . defer ( deferredQ ) ; } catch ( e ) { // cross-origin stylesheet -> make an XHR and q the response const deferredQ = parseCrossOriginStylesheet ( sheet . href , options , priority ) ; q . defer ( deferredQ ) ; } } ) ; return q ; }
Returns `axe.utils.queue` of CSSStyleSheet(s) for a given root node

@param {Object} options configuration options
@property {Object} options.rootNode document or document fragment
@property {Number} options.rootIndex a number representing the index of the document or document fragment, used for priority computation
@property {String} options.shadowId an id if undefined denotes that given root is a document fragment/ shadowDOM
@property {Number} options.timeout abort duration for network request
@property {Function} options.convertDataToStylesheet a utility function to generate a style sheet from given data (text)
@return {Object} queue
Returns axe . utils . queue of CSSStyleSheet ( s ) for a given root node
Load CSSOM from the root node