Skip to content

This SmartTag plugin intends to add page loading timing to the page hit.

Notifications You must be signed in to change notification settings

at-internet/atinternet-js-smarttag-performance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Performance plugin

This AT Internet SmartTag plugin intends to add page loading timing, gathered from compatible browsers' navigation.timing object (See w3 specification for more detailed information).

Loading

Load this file after the SmartTag main file in jour HTML page

<script src="performance.js" type="text/javascript"></script>

Action

This plugin will add an attribute in the AT Internet Tracker custom object. This parameter is a JSON object, built as follows :

{
	"navigationStart":0,
	"unloadEventStart":11,
	"unloadEventEnd":11,
	"fetchStart":0,
	"domainLookupStart":0,
	"domainLookupEnd":0,
	"connectStart":0,
	"connectEnd":0,
	"requestStart":6,
	"responseStart":9,
	"responseEnd":10,
	"domLoading":23,
	"domInteractive":149,
	"domContentLoadedEventStart":149,
	"domContentLoadedEventEnd":149,
	"domComplete":149,
	"loadEventStart":149,
	"loadEventEnd":149
}

Each key is a navigation loading event. Its value represents the duration between the first event (navigationStart) and its firing.

Support

This plugin is provided "AS IS". Feel freel to fork, enhance and pull request, but no official support and maintenance will be provided.

About

This SmartTag plugin intends to add page loading timing to the page hit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published