This project aims to optimize a provided website with a number of optimization- and performance-related issues so that it achieves a target PageSpeed score and runs at 60 frames per second. 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.
Open and view the Project using the .zip file provided or at my Github Repository.
The project is also hosted on GitHub
The project will be evaluated by a Udacity code reviewer according to the Web Optimization project rubrics
No additional installation is required for this project
- 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 the
pizzaResizeTime
less than 5ms.
Shifting script tags from head to end of body.
Minified js for arrays.
Changes in changePizzaSizes()
- 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.
- Open the project through the
hosting link
provided above or the.zip
file provided and extract the files.- Open
index.html
in the browser of your choice. - Open
views/pizza.html
.pizza.html
can also be opened throughCam's Pizzeria
link inindex.html
.
- Open