0.0.6 • Published 1 year ago

page-loaded-in v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Page Loaded In

This little JavaScript package will tell you how fast is your site by adding text to the desired place on your site.

Installation

The usuall installation:

npm install page-loaded-in
yarn add page-loaded-in

Or using CDN:

<script src="https://unpkg.com/page-loaded-in@0.0.4/dist/index.js"></script>

Usage

Include the code in your JavaScript file. For example, if you installed the package via npm, use require to load the script.

require('page-loaded-in')

Make sure there is an HTML element with the class js-page-loaded-in.

You should see how fast is your page now.

Example

I've placed the “Page loaded in” text on my site in the footer section.

Screenshot of a page footer showing Page Loaded In output - “Page loaded in 0.237s.”

The article

I wrote article about how this code works: https://www.silvestar.codes/articles/how-to-measure-page-loading-time-with-performance-api/

0.0.5

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago