Code Monkey home page Code Monkey logo

Comments (14)

TJkrusinski avatar TJkrusinski commented on July 18, 2024

Also, I suppose you could allow for css to be access via http as well.

from critical.

desenmeng avatar desenmeng commented on July 18, 2024

+1
and command line

from critical.

addyosmani avatar addyosmani commented on July 18, 2024

There are two directions we could go here. One is adding support for just throwing raw HTML at Critical so you don't have to write to disk (simpler) and the other is adding support for remote resources. One argument for not going for the latter is that it's not too much additional code to get Critical working with http separately.

If we go down the remote path, I think you'd need to keep in mind that Oust will want to try extracting all of the remote stylesheets and that would need to be factored in as well. If you could talk about how you would solve this in more detail we could consider it further.

cc @sindresorhus for an FYI.

from critical.

donaldallen avatar donaldallen commented on July 18, 2024

Right now, is it possible to use Critical with a PHP project, like WordPress? All the examples I've seen are reading static HTML files, but for dynamically generated templates, I'm guessing it's not possible.

from critical.

thomasplevy avatar thomasplevy commented on July 18, 2024

@donaldallen +1 on using this with dynamic content

from critical.

almeric avatar almeric commented on July 18, 2024

+1 on dynamic content!

Would be awesome if we could parse a xml/json sitemap to determine what pages there are

from critical.

leggomuhgreggo avatar leggomuhgreggo commented on July 18, 2024

+1 awwww shucky ducky

from critical.

marcobiedermann avatar marcobiedermann commented on July 18, 2024

I want to integrate critical on a node server which does not have any rendered html files. So +1 from my site for url / http access

from critical.

vdclouis avatar vdclouis commented on July 18, 2024

+1

from critical.

mcfarlanedev avatar mcfarlanedev commented on July 18, 2024

+1 For this feature.

From my understanding, in order to determine the Critical CSS from a series of partials, you would need some sort of headless browser (PhantomJS?) to render the page as a whole, then determine the "above-the-fold" content from there?

from critical.

danimalweb avatar danimalweb commented on July 18, 2024

This is a great idea +1.

from critical.

marcustisater avatar marcustisater commented on July 18, 2024

+1 would love to use this in a WordPress project.

from critical.

bezoerb avatar bezoerb commented on July 18, 2024

Remote access is available in master.
See #94 for details.
Anyone else willing to test this?

from critical.

bezoerb avatar bezoerb commented on July 18, 2024

Closing this as the requested feature is released in v0.7.0

from critical.

Related Issues (20)

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.