RSS Feed/News XF.getLocalLoadTime may return incorrect values

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
33,368
Points
823

Reputation:

JavaScript:

Code:
getLocalLoadTime: () =>
{
    if (XF._localLoadTime)
    {
        return XF._localLoadTime
    }

const loadCacheEl = document.querySelector('#_xfClientLoadTime')

const loadCache = loadCacheEl.value.split(',')
    if (loadCache.length === 2 && parseInt(loadCache[1]) === XF.config.time.now)
    {
        XF._localLoadTime = parseInt(loadCache[0])

return XF._localLoadTime
    }

const navigationTiming = window.performance.getEntriesByType('navigation')[0]
    if...

Read more

Continue reading...
 
Status
Not open for further replies.
Top