pwr2000 / frontend-nanodegree-mobile-portfolio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website Performance Optimization portfolio project

Running instruction

Click this URL for final project: http://pwr2000.github.io/frontend-nanodegree-mobile-portfolio/

Improvements v2

Part 2

  1. change querySelectorAll to getElementsByClassName
  2. declare pizzasDiv variable outside the loop
  3. change loop syntax to store array length for better efficiency
  4. declare movingPizza variable outside the loop
  5. minify main.js
  6. create GitHub Pages branch (see running instruction above)

Improvements

Part 1

  1. Minify Images, CSS, and JavaScript
  2. Inline Style CSS and @font-face
  3. Move and async Google Analytics
  4. Prevent media print from loading

Part 2

  1. Add viewport and charset on pizza html page
  2. Main.js refactoring:
  • changePizzaSizes function
  • updatePostions function
  • DOMContentLoaded function
  1. Inline Style and Bootstrap-grid CSS
  2. Minify image and CSS

PageSpeed Insights

Index page for Desktop

alt tag

Index page for Mobile

alt tag

Pizza page for Desktop

alt tag

Pizza page for Mobile

alt tag

About


Languages

Language:HTML 53.2%Language:JavaScript 42.7%Language:CSS 4.0%