Skip to content

This is a Node.js application that allows users to measure JavaScript execution times on a webpage by modifying its `<script>` tags with `console.time()` and `console.timeEnd()`.

Notifications You must be signed in to change notification settings

indrajithc/html-time-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website Timing Tool

This is a Node.js application that allows users to measure JavaScript execution times on a webpage by modifying its <script> tags with console.time() and console.timeEnd().

Features

  • Accepts a website URL and downloads its HTML.
  • Stores each page with a unique ID to handle multiple requests.
  • Provides an interface to:
    • Load the original page in an iframe.
    • Modify the HTML and measure script execution times.

Installation

  1. Clone the repository:

    git clone https://github.com/indrajithc/website-timing-tool.git
    cd website-timing-tool
  2. Install dependencies:

    npm install
  3. Start the server:

    node app.js
  4. Open your browser and visit:

    http://localhost:3000
    

Usage

  1. Enter a website URL on the homepage.
  2. The app downloads and saves the page HTML.
  3. The next screen provides:
    • A button to load the original page.
    • A button to analyze script execution time.

License

This project is licensed under the MIT License.


Let me know if you want to add any more details! 🚀

About

This is a Node.js application that allows users to measure JavaScript execution times on a webpage by modifying its `<script>` tags with `console.time()` and `console.timeEnd()`.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published