This is the Project of the Udacity Website Performance Optimization class. Visit the Site.
-
Get the code:
git clone https://github.com/leviisfool/WebsiteOptimization.git
-
Run the code:
python -m http.server 8080
- Compresse images.
- Add async on script analytics.js and perfmatters.js.
- Download the font file as font.css.
- Inline style.css
- Use Web Font Loader to load font.
- Add cache-control on head.
- Add media on print.css.
- Use getElementById instead of querySelector.
- Reduce pizzas' number.
- Get mover items only once.
- Calculate positions outside the for loop.
- User transform instead of left.
- Use getElementById instead of querySelector.
- Get element only once.
- Optimize the formula.