Giter Club home page Giter Club logo

estimator.dev's Introduction

โš ๏ธ This repo is no longer maintained. We now recommend developers use the legacy-javascript audit in Lighthouse to assess the benefits of switching to modern JavaScript syntax.

EStimator

Calculate the size and performance improvement a site could achieve by switching to modern JavaScript syntax.

Privacy

Submitting a URL for analysis is stateless. The service does not store any information about you or the URLs you analyze. A minimal Google Analytics ping is used to record page visits (URL and referrer) and JavaScript errors, as well as the total calculated size difference number (but not the URL you entered).

Hacking

# clone it
git clone [email protected]:GoogleChromeLabs/estimator.dev.git
cd estimator.dev

# install dependencies and firebase CLI
npm install
npm install -g firebase-tools

# build the front-end:
npm run build

# start the server and functions
firebase emulators:start

estimator.dev's People

Contributors

atakane avatar coliff avatar developit avatar meladkamari avatar mogavin avatar morellodev avatar philipwalton avatar tomayac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

estimator.dev's Issues

Increase Timeout?

really appreciate this project and its goals!

Is there a way to increase the timeout?

I'm working on debugging the js of a site and hitting the cap

Screen Shot 2021-01-05 at 18 37 51

Error: Parse Error: unknown: Cannot read property 'decorators' of undefined

Running this tool on https://www.momondo.com/car-rental/Los-Angeles-16078 results in error popping up when analysing one of the bundles:

https://www.momondo.com/res/combined.js?v=0bd227628862ca7ee2b13184ffd76fd10bcf9cfe-exclude-keel-globals&cluster=4&tag=ui/seo/cars/city/CityCarsPage
Error: Parse Error: unknown: Cannot read property 'decorators' of undefined
   at runBabel ([worker eval]:49:13)
   at MessagePort.<anonymous> ([worker eval]:4:36)
   at MessagePort.emit (events.js:315:20)
   at MessagePort.onmessage (internal/worker/io.js:78:8)
   at MessagePort.exports.emitMessage (internal/per_context/messageport.js:11:10)

It can be reproduced on every run.

URL input field autocorrects typed text

Whenever an URL is typed into the relative <input> field, the browser automatically does a spell-check and autocapitalizes the string, which is annoying. For this use case, the autocomplete, autocorrect, autocapitalize and spellcheck attributes should be added to the that element.

How to start/setup locally?

Hi!

Thank you for your project, it looks great, but i have trouble setting it up locally. I executed all commands, but i only got firebase dashboard to show up.

firebase emulators:start
!  emulators: You are not currently authenticated so some features may not work correctly. Please run firebase login to authenticate the CLI.
i  emulators: Starting emulators: functions, hosting
!  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, firestore, database, pubsub
!  Your requested "node" version "12" doesn't match your global version "14"
!  functions: You are not signed in to the Firebase CLI. If you have authorized this machine using gcloud application-default credentials those may be discovered and used to access production services.
!  hosting: Could not fetch web app configuration and there is no cached configuration on this machine. Check your internet connection and make sure you are authenticated. To continue, you must call firebase.initializeApp({...}) in your code before using Firebase.
i  hosting: Serving hosting files from: dist
+  hosting: Local server: http://localhost:5000
i  ui: downloading ui-v1.4.1.zip...
Progress: ================================================================> (100% of 4MB)
i  ui: Emulator UI logging to ui-debug.log
i  functions: Watching "C:\Users\Lyuboslav\Desktop\estimator.dev\server" for Cloud Functions...
+  functions[check]: http function initialized (http://localhost:5001/e-s-timator/us-central1/check).
+  functions[script]: http function initialized (http://localhost:5001/e-s-timator/us-central1/script).
+  functions[compiled]: http function initialized (http://localhost:5001/e-s-timator/us-central1/compiled).

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โœ”  All emulators ready! It is now safe to connect your app. โ”‚
โ”‚ i  View Emulator UI at http://localhost:4000                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Emulator  โ”‚ Host:Port      โ”‚ View in Emulator UI             โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Functions โ”‚ localhost:5001 โ”‚ http://localhost:4000/functions โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Hosting   โ”‚ localhost:5000 โ”‚ n/a                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  Emulator Hub running at localhost:4400
  Other reserved ports: 4500

Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.```

Unable to process large javascript files

I had to run through a couple of hurdles to try out your tool. First, the application I wanted to test is only available via localhost and I couldn't run it using HTTPS.

So, I git cloned your code and hacked the client to allow me to enter an HTTP address and then ran the client/server locally using the instructions in the README.md.

The next hurdle I ran into was a size limitation, which appears to cap out at 2MB. My JavaScript file is about 6MB for the largest file, plus a couple of other smaller files.

I tried modifying the server code, but I wasn't able to figure out how to run that server code locally. I tried changing the both of the "Refusing" messages within handlers.js and the MAX_SIZE variable, but doing that seemed to have no effect. I suspect the server files first need to be deployed to firebase and of course I can't do that.

Is there anyway to run server modifications locally? (I'm not a firebase expert). Alternatively, would you be able to increase the MAX_SIZE limitation and deploy that? I'd understand if that's a non-starter if that costs you $$$. Just trying to figure out how to run this because I'm very curious about a large app that I've developed.

Analyze a local website on localhost

It seems it's not possible to analyse a local website.

I tried to clone the repo, launch the firebase emulator and the frontend. But I get this error when I click on Analyze with my localhost URL :

Failed to load resource: net::ERR_BLOCKED_BY_CLIENT      (www.google-analytics.com/collect:1)

Would it be possible to make it work in some way?

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.