Namespace: navigate

navigate

Source:

Methods

(static) isLoadEventExpected(current, futureopt) → {boolean}

Determines if we expect to get a DOM load event (DOMContentLoaded) on navigating to the future URL.

Parameters:
Name Type Attributes Description
current string

URL the browser is currently visiting.

future string <optional>

Destination URL, if known.

Source:
Throws:

TypeError If current is not defined, or any of current or future are invalid URLs.

Returns:

Full page load would be expected if future is followed.

Type
boolean