Giter Club home page Giter Club logo

projoptim.github.io's Introduction

Website Performance Optimization portfolio project

About the project

  • To optimise the portfolio site so that it have pagespeed insights score greater than 90
  • To optimise pizza.html so that it have 60 FPS

Getting started

Download

To download this Repo use git clone https://github.com/arulk8/projoptim.github.io.git

To view as github page

click on the link https://arulk8.github.io/projoptim.github.io/

software used

  • Google chrome Dev tools
  • ngrok

Create local server

You can run a local server using

$> cd /path/to/your-project-folder
$> python -m SimpleHTTPServer 8080
Open a browser and visit localhost:8080

Then Publishing it on Web using ngrok

  $> cd /path/to/your-project-folder
  $> ./ngrok http 8080

Note: ngrok and local host should be on same port number . in this case it is 8080

Copy the public URL ngrok gives you and try running it through PageSpeed Insights! . If ngork doesn't work use github pages.

My Modifications:

Part 1: Optimize PageSpeed Insights score for index.html

  • Added media ="print" in print.css
  • Removed goggle fonts.
  • Minified style.css and added at the bottom of HTML
  • Added aync attribute to Analytics.js

Part 2: Optimize Frames per Second in pizza.html

  • The value of phase which is created by long iterative for loop is changed by simple for loop
  • document.queryselectAll is replaceddocument.GetElementById
  • This Dom asses element is cached in variable and placed outside the updatePosition( ) function so that it is not access again and again.
  • reduced 200 pizza to 25
  • In the pizza slider removed all document.querySelectorAll( ) and cached in a variable
  • removed unnecessary function which caused forced synchronous layout

projoptim.github.io's People

Contributors

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