Giter Site home page Giter Site logo

udacity-fend-p4-mobile-portfolio's Introduction

Website Performance Optimization portfolio project

=============================================

This code was downloaded from https://github.com/wstoettinger/frontend-nanodegree-mobile-portfolio

(c) 2015 Wolfgang Stöttinger

this page is hosted here to run tests: https://secure-fjord-1029.herokuapp.com/

alternatively you can download the source and open the index.html (the index.php is just a wrapper so heroku detects which build pack to use).

Optimizations:

i implemented all optimizations i could find in all of the documentations and external resources.

in general:

  • image compression
  • serving images in the right size and fileformat
  • loading external dependencies async where possible.
  • removed Google Analytics JS because i don't need it here.
  • minified files (although I didn't include the main.min.js but the main.js for development reasons, but it's there!)
  • activated webserver compression
  • enabled browser caching

most important ones of pizza.html:

  • removed all unneccessary pizzas from the background
  • minimized interaction with the DOM and CSSOM while generation of the page and during the animations by -- creating elements as text first and then injecting them as a whole -- saving elements and other values in variables in the main.js for regular use (instead of requesting them often).
  • put each pizza.mover in a separate layer via a css hack.
  • scroll rendering via requestAnimationFrame (while preventing multiple renderings at the same time).

what i didn't do (yet):

  • use flexbox for layouting

In case there is more i can do, let me know ;) #perfmatters

PS: after doing all the performance optimizations i figured that the Udacity page is doing a quite poor job in terms of performance, maybe I should have a look at it ;P

Build Process

I implemented a sample gulpfile.js to demonstrate how to minify/uglify main.js and style.css of the pizza.html.

udacity-fend-p4-mobile-portfolio's People

Contributors

durant-udacity avatar mrk-nguyen avatar nicolasartman avatar wstoettinger avatar

Watchers

 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.