Code Monkey home page Code Monkey logo

Comments (5)

ebidel avatar ebidel commented on August 27, 2024

The styles need to remain in the Shadow Dom so they're scoped to the
element. Otherwise, it defeats the purpose scoped styles. Under the SD
polyfill, styles are moved to the head, but that's only to shim the styling
features. For native SD they're left in place.
On Apr 3, 2014 2:58 AM, "Pentasis" [email protected] wrote:

Would it be possible and wanted to add an option to extract inline style
blocks and concat them into an external build.css file placed in the HEAD?

Reply to this email directly or view it on GitHubhttps://github.com//issues/3
.

from grunt-vulcanize.

Pentasis avatar Pentasis commented on August 27, 2024

I see. Is this a "limitation" of the polyfill or the spec?

from grunt-vulcanize.

ebidel avatar ebidel commented on August 27, 2024

Neither. If you use styles outside of shadow dom, they're not scoped.
Period :)
On Apr 4, 2014 1:41 AM, "Pentasis" [email protected] wrote:

I see. Is this a "limitation" of the polyfill or the spec?

Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-39543141
.

from grunt-vulcanize.

Pentasis avatar Pentasis commented on August 27, 2024

I understand this is not the place to ask these questions, I hope you don't mind, because this confuses me slightly. When the style is scoped it would still take up its own http-request wouldn't it? If so, does this not mean we get uber-slow loading pages once we create projects with, say a few hundred components? But perhaps I am mistaken and I misunderstand the workings of the Shadow Dom.

from grunt-vulcanize.

ebidel avatar ebidel commented on August 27, 2024

This is what vulcanize does. You have the option of concatenating all HTML Imports into a single import as well as inlining all resources using --inline. Using that option minimizes requests. See:

view-source:http://www.polymer-project.org/elements/common_elements.vulcanized.html?20140404

from grunt-vulcanize.

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.