Skip to content

peregrine-cms/page-transition-speed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTS - Page Transition Speed

A simple tool to measure page transition speed with google chrome/puppeteer

Installing PTS

npm install @peregrinecms/page-transition-speed -g

Running PTS

pts <url> <targetLink>

The tool opens a browser with and then finds a link with href=<url2> and clicks it. If no link can be found it will output all possible links

The output is a list of 5 tries performing that click.

Example:

pts https://www.peregrine-cms.com/ /content/sites/peregrine/about.html

For more command line options please use

pts -h
Usage: pts [options] <url> <targetLink>

Options:
  --version       Show version number               [boolean]
  -h, --help      Show help                         [boolean]
  -t, --throttle  throttle connection               [boolean]
  -r, --repeat    repeat test x times            [default: 5]
  -s, --show      show browser                      [boolean]

Prerequisites for Development

Install puppeteer.

npm i puppeteer-core

About

a tool to measure page transition speed with puppeteer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published