redirectCount property

int get redirectCount

The redirectCount read-only property returns a number representing the number of redirects since the last non-redirect navigation in the current browsing context.

The higher the number of redirects on a page, the longer the page load time. To improve the performance of your web page, avoid multiple redirects.

The PerformanceResourceTiming.redirectStart and PerformanceResourceTiming.redirectEnd properties can be used to measure redirection time. Note that they will return 0 for cross-origin redirects.

Note that client side redirects, such as <meta http-equiv="refresh" content="0; url=https://example.com/"> are not considered here.

Implementation

external int get redirectCount;