New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

load-page-regression-test

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-page-regression-test

Tools to check web pages' download performance with puppeteer

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

load-page-regression-test

This tool allows you check some performance values of your page. It uses puppeteer to opening the page and getting performance values from it.

Run

To run with config (see below):

load-page-regression-test --config path/to/config/file.json

or to run with default checkers' parameters:

load-page-regression-test https://github.com https://google.com

Config

Config file allows you specify URLs which should be check, override some values for checkers or disable some rules at all.

Config must have the following structure:

{
  "URL": {
    "rules": {
      "RULE-NAME": { // optional
        "value": NEW_VALUE_FOR_RULE, // to override checker's default parameter
        "enabled": false, // to disable checker for this page - by default all checkers are enabled
      }
    }
  },
}

Example of simple config:

{
  "https://github.com": {
    "rules": {
      "requests-count": {
        "value": 100
      }
    }
  },
  "https://www.google.com": {
    "rules": {
      "requests-count": {
        "enabled": false
      }
    }
  },
  "https://translate.google.com": {}
}

Rules

dom-content-loaded-time

Default: 3000

Checks when DOMCOntentLoaded event is fired (time in milliseconds).

load-time

Default: 5000

Checks when load event is fired (time in milliseconds).

no-redirects

Checks if after opening URL page is redirected to another page.

requests-count

Default: 30

Count of requests which browser made until load event is fired.

entry-html-file-size

Default: 14336 (14KB)

Checks the size of opened page (transferred size) (size in bytes).

total-loaded-size

Default: 1048576 (1MB)

Checks the size of all made requests until load event is fired (transferred size) (size in bytes).

FAQs

Package last updated on 06 Mar 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc