You can check this project here
- Use ImageOptim
- Use Cssminfier and JavaScript Compression Tool
- Test on PageSpeed Insights
- Minified HTML and CSS.
- Optimized images.
- Internal stylesheet.
- Internal stylesheet.
##js
- Use getElementsbyClass, getElementsbyId instead of querySelectorAll for optimized performance.
- Creat local variables
- Creat local variables on line
448 ~ 450
, to do not touch their value at every iteration. - Creat local variables on line
529~531
, calculate the number of pizzas needed to fill the screen, based on browser window resolution.
- Creat local variables on line
- And some more...