Code Monkey home page Code Monkey logo

projectoptimize's Introduction

Performance_Optimization

Apply the skills learned for optimization of graphics, HTML, CSS, and JavaScript to take a poorly optimized site and reduce the total load size to under 1.3mb and total requests to less than 27. Students will need to analyze the assets they've been provided to see where optimizations can and need to be made, make those optimizations, and measure their success. Multiple analyzation, optimization, and measuring cycles may be required.

Notes:

-Google page speed + node phantomas/http-server via npm start in command line to test in separate testing directory on desktop

-used tasks gulp imagesOpt and gulp images in gulpfile.js to optimize images that are then pipe from the src development directory to the dist (ie., public) directory.

-all other files are concatenated, minified, and optimized via the default gulp task via running "gulp" in the terminal

-to work on development stage files separately before compiling nd transferring over to the dist folder, type src directory path into the command line and run gulp browser-sync and sass --watch scss:css into terminal before switching back to main directory to run gulp (or open new terminal window with separate path).

//Cutting down on http requests via image sprites:

-created two separate image sprites for the avatars due to different images sizes (and the associated coordinates generated as a result)...used spritepad tool online to generate sprites after cropping images in Photoshop to get correct CSS/size dimensions.

-converted social png images into svg images, then created an SVG sprite after the body tag via one element with and elements to represent each social icon in the sprite....then included towards bottom of page with element. EX:

projectoptimize's People

Contributors

firebuggirl 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.