( elementOrAmpDoc, hostWin, rect, opt_prerenderableOnly )
| 21 | * @return {!Promise} |
| 22 | */ |
| 23 | export function whenContentIniLoad( |
| 24 | elementOrAmpDoc, |
| 25 | hostWin, |
| 26 | rect, |
| 27 | opt_prerenderableOnly |
| 28 | ) { |
| 29 | if (INI_LOAD_INOB) { |
| 30 | return whenContentIniLoadInOb(elementOrAmpDoc, opt_prerenderableOnly); |
| 31 | } |
| 32 | return whenContentIniLoadMeasure( |
| 33 | elementOrAmpDoc, |
| 34 | hostWin, |
| 35 | rect, |
| 36 | opt_prerenderableOnly |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * A legacy way using direct measurement. |
no test coverage detected