lib/stream/write_bundle_manifest.js
function getWeightOf(bundle) {
	var isCss = bundle.buildType === "css";
	var isMainBundle = bundle.bundles.length === 1;

	if (isCss) {
		return 1;
	} else if (isMainBundle) {
		return 2;
	} else {
		return 3;
	}
}
function getWeightOf(bundle) {
	var isCss = bundle.buildType === "css";
	var isMainBundle = bundle.bundles.length === 1;

	if (isCss) {
		return 1;
	} else if (isMainBundle) {
		return 2;
	} else {
		return 3;
	}
}
function getWeightOf ( bundle ) { var isCss = bundle . buildType === "css" ; var isMainBundle = bundle . bundles . length === 1 ; if ( isCss ) { return 1 ; } else if ( isMainBundle ) { return 2 ; } else { return 3 ; } }
A very simplified version of HTTP2 stream priorities
Bundles with the lowest weight should be loaded first

@param {Object} bundle - A bundle object
@return {Number} 1 for css bundles, 2 for main JS bundles, 3 for shared bundles
A very simplified version of HTTP2 stream priorities Bundles with the lowest weight should be loaded first