MCPcopy
hub / github.com/ampproject/amphtml / updateLayoutPriority

Method updateLayoutPriority

src/base-element.js:311–315  ·  view source on GitHub ↗

* Updates the priority of the resource. If there are tasks currently * scheduled, their priority is updated as well. * * This method can be called any time when the new priority value is * available. It's a restricted API and special review is required to * allow individual extensions

(newLayoutPriority)

Source from the content-addressed store, hash-verified

309 * @restricted
310 */
311 updateLayoutPriority(newLayoutPriority) {
312 this.element
313 .getResources()
314 .updateLayoutPriority(this.element, newLayoutPriority);
315 }
316
317 /** @return {!Layout_Enum} */
318 getLayout() {

Callers 3

test-resource.jsFile · 0.45
test-resources.jsFile · 0.45

Calls 1

getResourcesMethod · 0.80

Tested by

no test coverage detected