Closed Bug 940082 Opened 11 years ago Closed 10 years ago

[WebComponents] Find other hooks for current polyfill

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
1.4 S2 (28feb)

People

(Reporter: kgrandon, Assigned: kgrandon)

Details

(Whiteboard: [c= p= s=2014.02.28 u=])

We have been adding web components hooks into gaia using Lazy Loader. As we talk about starting to use real web components, we don't want these to get in the way of that. We need a way to inline these components, but still lazily load them as desired.
Hey, trying to find a way for inlining WC i come to that: https://github.com/mozilla-b2g/gaia/pull/13741, What do you think ?
Flags: needinfo?(kgrandon)
Flags: needinfo?(21)
(In reply to Sam Joch [:samjoch] from comment #1)
> Hey, trying to find a way for inlining WC i come to that:
> https://github.com/mozilla-b2g/gaia/pull/13741, What do you think ?

Hi Sam. Great progress on the components! I'm not sure if you saw, but we have something similar in gaia today: https://github.com/mozilla-b2g/gaia/blob/master/build/webapp-optimize.js#L255

The point of this bug was to ensure that we do not collide with whatever solution we decide to implement in the future.

When looking at your diff - it looks like you have implemented inlining using handlebars.js is this correct? I need to refresh myself with the spec, but at first glance it doesn't look like the new components follow the specification - do they?
Flags: needinfo?(kgrandon)
(In reply to Kevin Grandon :kgrandon from comment #2)
> (In reply to Sam Joch [:samjoch] from comment #1)
> > Hey, trying to find a way for inlining WC i come to that:
> > https://github.com/mozilla-b2g/gaia/pull/13741, What do you think ?
> 
> Hi Sam. Great progress on the components! I'm not sure if you saw, but we
> have something similar in gaia today:
> https://github.com/mozilla-b2g/gaia/blob/master/build/webapp-optimize.js#L255
> 

Yeah he has seen it since I shown him :) 
> 
> When looking at your diff - it looks like you have implemented inlining
> using handlebars.js is this correct? I need to refresh myself with the spec,
> but at first glance it doesn't look like the new components follow the
> specification - do they?

While I agree this is not ideal, I think that does not matter yet. The main goal of his PR is to free Gaia developers to care about a special layout and all the various css specificity of building blocks. Once apps does not knows anything about layout/css we will be able to fix it, so this one is just a step forward.

While thinking about handlebar again, I remember that we have already a shared/js/template.js file, could we reuse that instead?
Flags: needinfo?(21)
Holding off on doing anything here until we have more  info on what we're doing with web components.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Whiteboard: [c= p= s= u=] → [c= p= s=2014.02.28 u=]
Target Milestone: --- → 1.4 S2 (28feb)
You need to log in before you can comment on or make changes to this bug.