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()
.
- 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.
-
Clone the repository:
git clone https://github.com/indrajithc/website-timing-tool.git cd website-timing-tool
-
Install dependencies:
npm install
-
Start the server:
node app.js
-
Open your browser and visit:
http://localhost:3000
- Enter a website URL on the homepage.
- The app downloads and saves the page HTML.
- The next screen provides:
- A button to load the original page.
- A button to analyze script execution time.
This project is licensed under the MIT License.
Let me know if you want to add any more details! 🚀