You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

perfops-rom

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perfops-rom

RUM code for https://perfops.net/

1.2.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

perfops-rom

Include the code in your website

1s delay

<script async src="https://cdn.jsdelivr.net/npm/perfops-rom/dist/rom.min.js"></script>

3s delay

<script async src="https://cdn.jsdelivr.net/npm/perfops-rom"></script>

provide client id in the collected metrics:

<script async>
    (function (a, m) {
        window.rum = function (k) { window.rum.key = k; }; a = document.createElement('script'); m = document.getElementsByTagName('script')[0];
        a.async = 1; a.src = 'https://cdn.jsdelivr.net/npm/perfops-rom'; m.parentNode.insertBefore(a, m);
    })();

    rum('<CLIENT-ID-HERE>');
</script>

Stored data

  • user country
  • request duration: (timing.responseEnd - timing.requestStart).toFixed(2)

FAQs

Package last updated on 16 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts