Skip to content

kmwillia/frontend-nanodegree-mobile-portfolio

 
 

Repository files navigation

Website Performance Optimization portfolio project

Getting started

Some useful tips to help you get started:

  1. Check out the repository
  2. To inspect the site on your phone, you can run a local server
$> cd /path/to/your-project-folder
$> python -m SimpleHTTPServer 8080
  1. Open a browser and visit localhost:8080
  2. Download and install ngrok to make your local server accessible remotely.
$> cd /path/to/your-project-folder
$> ngrok 8080
  1. Copy the public URL ngrok gives you and try running it through PageSpeed Insights!

Part 1: Optimize PageSpeed Insights score for index.min.html

Criteria:
  • PageSpeed score >= 90
Solution:
  1. index.html
    • move necessary CSS from external link to index.html directly
    • reorder CSS, and JS to optimize rendering path

Part 2: Optimize Frames per Second in pizza.html

Criteria:
  • 60 fps
  • resize < 1ms
Solution:
  1. views/js/main.js was edited to improve performance
    • moving DOM queries out of loops
    • using classes instead of inline styles
    • animate with 2D translate instead of top and left
  2. pizza.html was also modified
    • include new CSS styles to ease use of inline styles

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.5%
  • HTML 47.4%
  • CSS 5.1%