Namespace

stat_origin

stat_origin

Origin object: external / internal / dual visitor checker

Methods

static Check()

Run checking (retrieve settings and launch Load)

static Load(src, checkInt)

Load testing resource
Parameters:
Name Type Description
src string URL of resource to be loaded
checkInt boolean true if this is an internal resource

static Save(internal)

Save computed origin
Parameters:
Name Type Description
internal boolean true if current origin is internal

static Set()

Set computed origin in ATI tag

static SetAndRun(fn)

Wait for checking completion, then run given function
Parameters:
Name Type Description
fn function Function to be run once origin has been set