Home / Function/ collectLoads() — astro Function Reference

collectLoads() — astro Function Reference

Architecture documentation for the collectLoads() function in view-transitions.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  b31ac090_b75c_ad69_30ed_803f254c1ed6["collectLoads()"]
  b4c19437_37d7_2f07_374e_31b46d21464b["view-transitions.test.js"]
  b31ac090_b75c_ad69_30ed_803f254c1ed6 -->|defined in| b4c19437_37d7_2f07_374e_31b46d21464b
  style b31ac090_b75c_ad69_30ed_803f254c1ed6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/e2e/view-transitions.test.js lines 16–23

function collectLoads(page) {
	const loads = [];
	page.on('load', async () => {
		const url = page.url();
		if (url !== 'about:blank') loads.push(await page.title());
	});
	return loads;
}

Domain

Subdomains

Frequently Asked Questions

What does collectLoads() do?
collectLoads() is a function in the astro codebase, defined in packages/astro/e2e/view-transitions.test.js.
Where is collectLoads() defined?
collectLoads() is defined in packages/astro/e2e/view-transitions.test.js at line 16.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free