Giter Site home page Giter Site logo

Discussion about lighthouse-auto-fix HOT 7 OPEN

feibyte avatar feibyte commented on May 26, 2024
Discussion

from lighthouse-auto-fix.

Comments (7)

feibyte avatar feibyte commented on May 26, 2024 1

A static website has multiple pages. But ligthouse just run on one page. Anyway, Let's focus on the main page first.

from lighthouse-auto-fix.

feibyte avatar feibyte commented on May 26, 2024

@alex-e-leon Firstly, I think we should collect some requirements and see how many works we could do. Then we should set up a metric and tool to collect the indicator we care.

from lighthouse-auto-fix.

alex-e-leon avatar alex-e-leon commented on May 26, 2024

Yeah - I think that's spot on - I reckon we should try to implement each of the lighthouse rules one by one - using your blog as a test ground.

How about picking one of the failing tests on your blog to start with and seeing if we can automate the fixing of it?

from lighthouse-auto-fix.

feibyte avatar feibyte commented on May 26, 2024

Yeah, I am doing some research.
Here's the audit result from [lighthouse]. Audit result
If we're looking for a lib for manipulating DOM. cheerio might be suitable for us.
I don't think we could see webpack support HTML as entry in this year.

from lighthouse-auto-fix.

alex-e-leon avatar alex-e-leon commented on May 26, 2024

Rather than using cheerio - I usually prefer using jsdom, or even more powerful, just using headless chrome - as it gives you all the regular dom utils and a familiar API - as well as probably the best 2 html parsers + editors out there

from lighthouse-auto-fix.

feibyte avatar feibyte commented on May 26, 2024

jsdom is more powerful. So far what we want is just manipulation of DOM, we could choose cheerio first. We could switch to jsdom when necessary.

from lighthouse-auto-fix.

alex-e-leon avatar alex-e-leon commented on May 26, 2024

from lighthouse-auto-fix.

Related Issues (2)

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.