Comments (5)
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.
I see. Is this a "limitation" of the polyfill or the spec?
from grunt-vulcanize.
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.
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.
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)
- solution for identifying and removing inlined files (plus other redundant files)?
- Update to vulcanize 0.4.3 & new release HOT 7
- Inline stylesheets are not being inlined HOT 5
- Disable enclosing HTML tags
- Better documentation HOT 4
- Fails silently on es6 syntax where vulcanize doesn't HOT 1
- Breaks css SVG mask property HOT 2
- Need to update samples HOT 2
- After version 0.6.1 html attribute values are escaped HOT 3
- Upgrade vulcanize to be compatible with v1.0 HOT 2
- grunt-vulcanize turns Polymer(obj) into Polymer(name, obj) HOT 2
- Add "output" file name option HOT 2
- Vulcanize multiple files HOT 3
- src binded attribute modifies path HOT 2
- `inlineScripts` option causes ENOENT fatal error HOT 5
- `abspath` option causes "TypeError: Arguments to path.resolve must be strings" error HOT 6
- Latest release of vulcanize breaks with `inlineScripts: true`
- add option to allow control over where js script tags are placed
- the task should call done() when all files are processed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-vulcanize.