- Removed external css and included it in html using style tags with reduction in white space.
- Added media query to print.css
- Removed google fonts script which was unnecessary in this page.
- Minified print.css and perfmatters.js using online minifier (http://www.minifier.org/).
- Made google analytics script as async.
- Resize 2mb+ pizzeria to a thumbnail level using a image editor and logo as suggested by google pageinsights
- Moved the function in script tag to bottom of the page.
- Minified the entire html using online minifier (https://kangax.github.io/html-minifier/)
Extract the folder and open index.html to view the optimized page.
- Removed ingredientsItemizer and gave li tags directly.
- Query selecters were replaced by a more optimized getElementById and getElementsByClassname selectors.
- Took document.body outside the for-loop of changePizzaSizes().
- Removed determineDx function and modified rest of changePizzaSizes().
- Took document.body and items.length outside the for-loop of updatePositions().
- Set such that pizzas displayed depends on inner window dimensions.
- Optimized pizzaria.jpg to reduce image loading time.
- Took out variable creation from inside the for loops.
Open pizza.html from views folder after extraction.