Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29565799: Noissue - Load options on DOMContentLoaded rather than jQuery.ready (Closed)

Created:
Oct. 5, 2017, 7:40 p.m. by Manish Jethani
Modified:
Oct. 6, 2017, 1:35 p.m.
CC:
kzar
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Description

Noissue - Load options on DOMContentLoaded rather than jQuery.ready

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use addEventListener #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M desktop-options.js View 1 2 chunks +2 lines, -1 line 3 comments Download

Messages

Total messages: 8
Manish Jethani
Oct. 5, 2017, 7:41 p.m. (2017-10-05 19:41:01 UTC) #1
Manish Jethani
Patch Set 1 The way jQuery.ready works changed significantly in jQuery 3.0: https://jquery.com/upgrade-guide/3.0/#breaking-change-document-ready-handlers-are-now-asynchronous Now it ...
Oct. 5, 2017, 7:46 p.m. (2017-10-05 19:46:26 UTC) #2
Sebastian Noack
Nice find! Yeah, that would be better than the workaround we had first in mind. ...
Oct. 5, 2017, 7:50 p.m. (2017-10-05 19:50:28 UTC) #3
Manish Jethani
Patch Set 2: Use addEventListener https://codereview.adblockplus.org/29565799/diff/29565800/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29565799/diff/29565800/desktop-options.js#newcode189 desktop-options.js:189: $(document).on("DOMContentLoaded", loadOptions); On 2017/10/05 ...
Oct. 5, 2017, 8:10 p.m. (2017-10-05 20:10:14 UTC) #4
Manish Jethani
https://codereview.adblockplus.org/29565799/diff/29565827/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29565799/diff/29565827/desktop-options.js#newcode707 desktop-options.js:707: ext.onMessage.addListener(message => On 2017/10/05 20:10:13, Manish Jethani wrote: > ...
Oct. 5, 2017, 8:12 p.m. (2017-10-05 20:12:34 UTC) #5
Sebastian Noack
LGTM https://codereview.adblockplus.org/29565799/diff/29565827/desktop-options.js File desktop-options.js (right): https://codereview.adblockplus.org/29565799/diff/29565827/desktop-options.js#newcode707 desktop-options.js:707: ext.onMessage.addListener(message => On 2017/10/05 20:10:13, Manish Jethani wrote: ...
Oct. 5, 2017, 8:14 p.m. (2017-10-05 20:14:47 UTC) #6
Manish Jethani
On 2017/10/05 20:14:47, Sebastian Noack wrote: > LGTM Thanks! Thomas, I'd like to know if ...
Oct. 5, 2017, 8:25 p.m. (2017-10-05 20:25:50 UTC) #7
Thomas Greiner
Oct. 6, 2017, 12:45 p.m. (2017-10-06 12:45:55 UTC) #8
LGTM
I'm happy to see that it was such a simple fix.

Powered by Google App Engine
This is Rietveld