Harsimar Singh
- Optimize a provided website to achieve a target PageSpeed score of 60 frames per second.
- The live streaming of project.
- Project can be viewed at my Github Repository.
- As web applications become increasingly interactive and accessed on a variety of devices there are a variety of opportunities in which performance issues can hinder the user experience. This project presents a number of those performance issues and provided an opportunity to showcase my skills in identifying and optimizing web applications.
Open the project through the
hosting link
provided above or through the.zip
file provided and extract file. To openindex.html
:
- Open the main folder.
- Open
index.html
.
To open
pizza.html
:
- Open
view
folder in main folder. - Open
pizza.html
inview
. pizza.html
can also be opened throughCam's Pizzeria
link inindex.html
.
To open
main.js
:
- Open
js
folder inview
folder. - Open
main.js
.
- The aim of this project was to optimize index.html to a pageinsight speed score above 90.
- My score was: 95 for Mobile and 96 for Desktop version.
Unlinking style.css and making it internal after minifying it. Using media query "print" on print.css. Shifting script tags from head to end of body and using async attribute on them.
- The aim of this project was to optimize pizza.html to 60 fps scrolling speed and to reduce pizza resize time less than 5 ms.
Shifting script tags from head to end of body.
Minified js for arrays. Changes in
changePizzaSizes()
function.
- Declaring rPC and dx outside the loop as it was being declared again and again.
Changes in
UpdatePosition()
function.
- Declaring phase outside the loop as it was being declared again and again.
Changes in
document.addEventListener()
.
- Reducing the number of times the loop runs as image will be generated lesser number of times.
Congratulations ! Your website is now Optimized.