Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 922020 - Lazy load DOM nodes via HTML Import polyfill #12547

Merged
merged 1 commit into from Oct 3, 2013
Merged

Bug 922020 - Lazy load DOM nodes via HTML Import polyfill #12547

merged 1 commit into from Oct 3, 2013

Conversation

crdlc
Copy link

@crdlc crdlc commented Sep 30, 2013

@KevinGrandon
Copy link
Contributor

👍

@crdlc
Copy link
Author

crdlc commented Oct 1, 2013

I saw your excellent work on Contacts I wanted to do the same on home app, thanks!

LazyLoader.load([document.getElementById('evmeOverlay'),
evmeContainer], function loaded() {
document.body.classList.add('evme-loading');
navigator.mozL10n.translate(evmeContainer);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we translate evmeContainer, but not evmeOverlay. As evmeOverlay has strings I think we also need to translate it also?

If we are always loading these two together, it may be easier to place them within the same custom element? Not necessary, but it may be easier to call translate on a single node instead of two.

crdlc pushed a commit that referenced this pull request Oct 3, 2013
Bug 922020 - Lazy load DOM nodes via HTML Import polyfill
@crdlc crdlc merged commit d14a732 into mozilla-b2g:master Oct 3, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants