Skip to content

eee003/frontend-nanodegree-mobile-portfolio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website Performance Optimization portfolio project


To run the project:

Navigate to: FEND P4: Website Performance Optimization

Alternatively to look at the src and dist folders within the project, navigate to: My github repository

Once there, you can:

  1. Check out the repository
  2. To inspect the site , 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. Note that I needed to add http infront of ngrok 8080 on my system unlike the original directions given for this assignment
$> cd /path/to/your-project-folder
$> http ngrok 8080
  1. Copy the public URL ngrok gives you and try running it through PageSpeed Insights!

How to build the project

  1. The project has already been configured with a package.json and a Gruntfile.
  2. Change to the project's root directory.
  3. Install project dependencies with npm install.
  4. Convert images to .webp format using www.online-convert.com and store the converted image files in the orginal folders along with the originals. The code has been updated to use the .webp files.
  5. Run Grunt with grunt.

Optimizations Used:

  1. Converted images to .webp format (www.online-convert.com)
  2. Minimized critical css. (grunt-contrib-cssmin)
  3. Inlined minimized css except for the print.min.css
  4. JS that does not affect the DOM was changed to Async
  5. HTML was minimized (grunt-contrib-cssmin)
  6. JS files were minimized. (grunt-contrib-uglify)
  7. Moved unnecssary work from 'for' looks in main.js
  8. Reduced the number of pizzas

Optimization Tips and Tricks and Resources

Customization with Bootstrap

The portfolio was built on Twitter's Bootstrap framework. All custom styles are in dist/css/portfolio.css in the portfolio repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 56.0%
  • JavaScript 40.4%
  • CSS 3.6%