Yellow Lab Tools

Untangling and counting the spaghettis...
Tested url:   {{phantomasResults.url}}
New test

Error: {{phantomasResults.error}}

Phantomas timed out
Phantomas config error
Phantomas failed to load page
Phantomas internal error
Javascript execution tree error
JSON undefined error

Summary

{{notations.domComplexity}}
DOM complexity
DOM elements count
{{phantomasResults.metrics.DOMelementsCount}}

A high number of DOM elements means a lot of work for the browser to render the page.

It also slows down Javascript DOM queries, as there are more elements to search through.

DOM max depth
{{phantomasResults.metrics.DOMelementMaxDepth}}

A deep DOM makes difficult the CSS matching with DOM elements.

It also slows down Javascript modifications to the DOM because dimensions calculations bubble up. Same thing for Javascript events.

Number of iframes
{{phantomasResults.metrics.iframesCount}}

iFrames are the most complex HTML elements. They are pages just like the main page and the browser needs to create a new page context, wich has a cost.

IDs duplicated
{{phantomasResults.metrics.DOMidDuplicated}}
{{notations.domManipulations}}
DOM read and write
DOM inserts
{{phantomasResults.metrics.DOMinserts}}
DOM queries
{{phantomasResults.metrics.DOMqueries}}
Time they took
{{totalJSTime}} ms
{{notations.duplicatedDomQueries}}
Duplicated DOM queries
Avoidable queries
{{duplicatedQueriesCountAll}}
{{notations.eventsBound}}
Events bound
Events bound
{{phantomasResults.metrics.eventsBound}}
{{notations.jsBadPractices}}
Bad Javascript
Javascript errors
{{phantomasResults.metrics.jsErrors}}
eval calls
{{phantomasResults.metrics.evalCalls}}
document.write calls
{{phantomasResults.metrics.documentWriteCalls}}
Console messages
{{phantomasResults.metrics.consoleMessages}}
Global variables
{{phantomasResults.metrics.globalVariables}}
{{notations.jQueryLoading}}
jQuery version
jQuery version
{{phantomasResults.metrics.jQueryVersion}}
{{phantomasResults.metrics.jQueryDifferentVersions}} versions loaded
{{version}} &
{{notations.cssComplexity}}
CSS complexity
Rules count
{{phantomasResults.metrics.cssRules}}
Complex selectors
{{phantomasResults.metrics.cssComplexSelectors}}
{{notations.badCss}}
Bad CSS
Duplicated selectors
{{phantomasResults.metrics.cssDuplicatedSelectors}}
Empty rules
{{phantomasResults.metrics.cssEmptyRules}}
CSS expressions
{{phantomasResults.metrics.cssExpressions}}
Uses of !important
{{phantomasResults.metrics.cssImportants}}
Old IE fixes
{{phantomasResults.metrics.cssOldIEFixes}}
Old prefixes
{{phantomasResults.metrics.cssOldPropertyPrefixes}}
Universal selectors
{{phantomasResults.metrics.cssUniversalSelectors}}
Redundant body selectors
{{phantomasResults.metrics.cssRedundantBodySelectors}}
{{notations.requests}}
Requests number
Total requests
{{phantomasResults.metrics.requests}}
Documents
{{phantomasResults.metrics.htmlCount}}
Scripts
{{phantomasResults.metrics.jsCount}}
Stylesheets
{{phantomasResults.metrics.cssCount}}
Images
{{phantomasResults.metrics.imageCount}}
Fonts
{{phantomasResults.metrics.webfontCount}}
Videos
{{phantomasResults.metrics.videoCount}}
JSON
{{phantomasResults.metrics.jsonCount}}
Other
{{phantomasResults.metrics.otherCount}}
{{notations.network}}
Network
404 not found
{{phantomasResults.metrics.notFound}}
Connections closed
{{phantomasResults.metrics.closedConnections}}
Duplicated requests
{{phantomasResults.metrics.multipleRequests}}
Caching disabled
{{phantomasResults.metrics.cachingDisabled}}
Caching not specified
{{phantomasResults.metrics.cachingNotSpecified}}
Caching too short
{{phantomasResults.metrics.cachingTooShort}}
Different domains
{{phantomasResults.metrics.domains}}

Javascript Timeline

This graph gives a quick view of when the Javascript interactions with the DOM occur during the loading of the page.

Timestamp: {{$index * timelineIntervalDuration | number: 0}} ms
0 ms
{{endTime | number: 0}} ms
DOM creation
DOM interactive
DOM content loaded event
Page completion
Page is complete
Executing Javascript and DOM queries here is a bad practice and slows down the DOM construction.
Some frameworks do things here, but it's not reliable and should be avoided.
Also known as "document ready". This is where you should execute top-priority scripts, like binding action buttons or launch a video player.
Here you can execute mid-priority tasks. Loading a script with createElement('script') is one way to do so.
The page is considered loaded, it's time for low priority things : trackers, social plugins, easter egg...

Javascript Profiler

The table below shows the interactions between Javascript and the DOM. It is usefull to understand what's going on when the page loads.
The tool is slower than a real browser, so durations are a little exagerated.

Filter by
ms
Type
Params
Duration
Timestamp
{{$index}}
{{node.data.type}}
{{node.data.callDetails.arguments[0]}} : {{node.data.callDetails.arguments[1]}} : {{node.data.callDetails.arguments[2]}} : {{node.data.callDetails.arguments[3]}}

Called on DOM element

{{node.data.callDetails.context.domElement}}

Called on 1 jQuery element

{{node.data.callDetails.context.firstElementPath}}

Called on {{node.data.callDetails.context.length}} jQuery elements

The .bind() method attaches the event listener to each jQuery element one by one. Using the .on() method is preferred if available (from v1.7).

First one is: {{node.data.callDetails.context.firstElementPath}}

Backtrace

{{trace.fnName || '(anonymous)'}}
can't find any backtrace :/

Sub processes

Type
Params
Duration
{{$index}}
{{node.data.type}}
{{node.data.callDetails.arguments[0]}} : {{node.data.callDetails.arguments[1]}} : {{node.data.callDetails.arguments[2]}} : {{node.data.callDetails.arguments[3]}}
{{node.data.time}} ms
{{node.data.time}} ms
{{node.data.timestamp | number: 0}}

Metrics from Phantomas report

Phantomas is a web performance metrics collector. You can find here the (almost) entire list of metrics from Phantomas.

{{moduleName}}

{{metricName}}: {{phantomasResults.metrics[metricName] | number: 0}} {{metric.unit}}
{{metric.desc}} (unreliable)
Show offenders
Hide offenders
  • {{offender}}