MCPcopy Create free account
hub / github.com/ampproject/amphtml / getLayoutPriority

Method getLayoutPriority

src/base-element.js:296–298  ·  view source on GitHub ↗

* This is the priority of loading elements (layoutCallback). Used only to * determine layout timing and preloading priority. Does not affect build time, * etc. * * The lower the number, the higher the priority. * * The default priority for base elements is LayoutPriority_Enum.CONTE

()

Source from the content-addressed store, hash-verified

294 * TODO(#31915): remove once R1 migration is complete.
295 */
296 getLayoutPriority() {
297 return LayoutPriority_Enum.CONTENT;
298 }
299
300 /**
301 * Updates the priority of the resource. If there are tasks currently

Callers 4

test-owners.jsFile · 0.45
test-resource.jsFile · 0.45
test-resources.jsFile · 0.45
test-amp-img.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected