Giter Club home page Giter Club logo

frontend-nanodegree-mobile-portfolio's Introduction

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.

frontend-nanodegree-mobile-portfolio's People

Contributors

eee003 avatar durant-udacity avatar mrk-nguyen avatar nicolasartman avatar susansmith avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.