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

Bug 1211395 - Performance regression in Message #32458

Merged

Conversation

steveck-chung
Copy link
Contributor

No description provided.

@mozilla-autolander-deprecated
Copy link
Contributor

if (!this.selectionHandler) {
LazyLoader.load('/views/shared/js/selection_handler.js', () => {
LazyLoader.load([
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like this part could be wrapped into utils. BTW it's amazing that we have 3 different edit-mode.css for an edit form...

@mozilla-autolander-deprecated
Copy link
Contributor

_lazyLoadInit: function() {
var lazyLoadPromise = LazyLoader.load(this._lazyLoadScripts).then(() => {
var lazyLoadFiles = this._lazyLoadScripts.concat(this._lazyLoadStyles);
var lazyLoadPromise = LazyLoader.load(lazyLoadFiles).then(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

optional nit: you probably can do load([...this._lazyLoadScripts, ...this._lazyLoadStyles])

@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

@@ -611,6 +613,18 @@ suite('navigation >', function() {
}).then(done, done);
});
});

suite('setReady', function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This trick is only for non-split view, so only add it in the non-split test suite.

@julienw
Copy link
Contributor

julienw commented Oct 20, 2015

this needs a simple rebase

@mozilla-autolander-deprecated
Copy link
Contributor

@steveck-chung
Copy link
Contributor Author

Rebased!

@@ -6681,7 +6683,10 @@ suite('conversation.js >', function() {

test('enables the font-fit algorithm in headers', function() {
assert.isFalse(header.hasAttribute('no-font-fit'));
assert.isFalse(editHeader.hasAttribute('no-font-fit'));
Copy link
Contributor

Choose a reason for hiding this comment

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

mmm this test should move in the edit mode tests, I think ?

Copy link
Contributor

Choose a reason for hiding this comment

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

ok I see it's in sms_test...

@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

steveck-chung added a commit that referenced this pull request Oct 23, 2015
Bug 1211395 - Performance regression in Message, r=julienw azasypkin
@steveck-chung steveck-chung merged commit 5361f0e into mozilla-b2g:master Oct 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants