Skip to content
/ monitor Public

RUM tool for web page performance metrics. Measurement script developed by @bluesmoon at the [Lognormal Boomerang Project]( https://github.com/lognormal/boomerang )

Notifications You must be signed in to change notification settings

LACNIC/monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitor - Web performance monitoring tool

Public script

Put the following script in pages you want to monitor variuos browser timers, and perceived bandwidth and latency between browser and server. The script loads in an asynchronous way, so it won't block or downgrade usual page performance.

(function (d, s) {
        var js = d.createElement(s),
                sc = d.getElementsByTagName(s)[0];

        js.src = "http://179.0.156.22/static/app/js/monitor.js";
        js.type = "text/javascript";
        sc.parentNode.insertBefore(js, sc);

        js.onload = js.onreadystatechange = function () {

            if(Math.random() > <percentage of users monitored>) { // e.g.: 1.0 for 100% users, 0.6 for 60% users being monitored.
                return;
            }

            BOOMR.init({
                BW: {
                    base_url: '<your/path/to/images/dir>',
                    cookie: 'BW',
                    cookie_exp: <cookie expiration in seconds>
                },
                RT: {
                    cookie: 'RT',
                    cookie_exp: <cookie expiration in seconds>
                }
            })
        };

    }(document, "script"));

Bitdeli Badge

About

RUM tool for web page performance metrics. Measurement script developed by @bluesmoon at the [Lognormal Boomerang Project]( https://github.com/lognormal/boomerang )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published