Code Monkey home page Code Monkey logo

speedmysite's Introduction

SpeedMySite

A Nodejs tool that can be used to clean up the load time of websites by finding the issues that are slowing it down for no reason

It will output a folder with a write up of what you can do to speed up the site, if no parameter is passed it will set the folder by default to the top level as /SpeedMySite_Results


How To Setup

  1. The first thing you need to do is clone the repo git clone https://github.com/sjfricke/SpeedMySite.git

  2. go to the cloned repo directory and run npm install

  3. Run the script with one of the flags below node SpeedMySite <my_site_ur> [additional parameters]

Parameters and examples

  • No parameters
    • Example: node SpeedMySite http://www.google.com
  • -o Output location of results
    • Example: node SpeedMySite http://www.google.com -o ~/myOtherFolder
  • -v Verbose mode
    • Example: node SpeedMySite http://www.google.com -o ~/myOtherFolder -v
  • --threshold Amount of tolerence to give to images being over size
    • Values represent percent, so value needs to be over 100
    • Default: 110%
    • Example: node SpeedMySite http://www.google.com --threshold 200

Current Issues

  • Have found I still need to work on a way to correctly get photos when they are sized and styled with background css attributes. Also dynamically loaded pages (like angular site) that don't have the image up don't have a display size so will need to find the size in the css.
  • Duplicate - it catches duplicates and handles it correctly, but I want to fix it to display in report, otherwise it will say n images fixed and only show n-1 images in the folder
  • resize-img node modules seems to not want to work on Windows, will need to figure that out as well
  • Files type
    • .gif
    • .svg
    • data:images (base64)

speedmysite's People

Stargazers

 avatar

Watchers

 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.