Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 8993007: WebUI TaskManager: Delay scripts loading. (Closed)

Created:
9 years ago by yoshiki
Modified:
8 years, 11 months ago
CC:
chromium-reviews, arv (Not doing code reviews), yoshiki+watch_chromium.org
Visibility:
Public.

Description

WebUI TaskManager: Delay scripts loading. This CL delays loading of some scripts. Previous commit (http://crrev/113772) was reverted, because it increased the resource size of chromium. This CL picked up the delay loading part from it. This CL also contains calculation of the loading and initialization times. BUG=104136 TEST=manual on linux Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118303

Patch Set 1 #

Total comments: 15

Patch Set 2 : review fix #

Total comments: 10

Patch Set 3 : review fix #

Total comments: 6

Patch Set 4 : review fix #

Total comments: 12

Patch Set 5 : fix review and wrong conditions #

Total comments: 4

Patch Set 6 : review fix #

Total comments: 10

Patch Set 7 : review fix #

Total comments: 1

Patch Set 8 : refiew fix #

Patch Set 9 : marge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -48 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/context_menu_handler.js View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/resources/task_manager/includes.js View 1 2 3 4 5 6 3 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/resources/task_manager/main.html View 1 2 3 4 2 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/resources/task_manager/main.js View 1 2 3 4 5 6 7 8 19 chunks +78 lines, -32 lines 0 comments Download
A chrome/browser/resources/task_manager/measure_time.js View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager_backend.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/task_manager_ui.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
yoshiki
@mazda for review and @jhawkins for approval. Please take a look.
9 years ago (2011-12-19 15:52:46 UTC) #1
James Hawkins
http://codereview.chromium.org/8993007/diff/1/chrome/browser/resources/task_manager/includes.js File chrome/browser/resources/task_manager/includes.js (right): http://codereview.chromium.org/8993007/diff/1/chrome/browser/resources/task_manager/includes.js#newcode52 chrome/browser/resources/task_manager/includes.js:52: var loadDelayedIncludes; Why is this here? http://codereview.chromium.org/8993007/diff/1/chrome/browser/resources/task_manager/main.js File chrome/browser/resources/task_manager/main.js ...
9 years ago (2011-12-19 18:35:55 UTC) #2
arv (Not doing code reviews)
I wonder if you could change to deferred or async scripts instead? http://codereview.chromium.org/8993007/diff/1/chrome/browser/resources/task_manager/main.js File chrome/browser/resources/task_manager/main.js ...
9 years ago (2011-12-19 22:57:14 UTC) #3
yoshiki
PTAL On 2011/12/19 22:57:14, arv wrote: > I wonder if you could change to deferred ...
9 years ago (2011-12-20 15:18:24 UTC) #4
arv (Not doing code reviews)
http://codereview.chromium.org/8993007/diff/12004/chrome/browser/resources/task_manager/main.js File chrome/browser/resources/task_manager/main.js (right): http://codereview.chromium.org/8993007/diff/12004/chrome/browser/resources/task_manager/main.js#newcode246 chrome/browser/resources/task_manager/main.js:246: var column_id = DEFAULT_COLUMNS[j][0]; no underscores in js http://codereview.chromium.org/8993007/diff/12004/chrome/browser/resources/task_manager/main.js#newcode249 ...
9 years ago (2011-12-20 19:33:56 UTC) #5
yoshiki
Thanks. PTAL? http://codereview.chromium.org/8993007/diff/12004/chrome/browser/resources/task_manager/main.js File chrome/browser/resources/task_manager/main.js (right): http://codereview.chromium.org/8993007/diff/12004/chrome/browser/resources/task_manager/main.js#newcode246 chrome/browser/resources/task_manager/main.js:246: var column_id = DEFAULT_COLUMNS[j][0]; On 2011/12/20 19:33:57, ...
9 years ago (2011-12-21 05:18:56 UTC) #6
mazda
lgtm with nits. http://codereview.chromium.org/8993007/diff/15001/chrome/browser/resources/task_manager/includes.js File chrome/browser/resources/task_manager/includes.js (right): http://codereview.chromium.org/8993007/diff/15001/chrome/browser/resources/task_manager/includes.js#newcode75 chrome/browser/resources/task_manager/includes.js:75: loadDelayedIncludes = function (taskmanager) { No ...
9 years ago (2011-12-21 05:56:52 UTC) #7
yoshiki
mazda: Thanks! jhawkins, arv: PTAL? http://codereview.chromium.org/8993007/diff/15001/chrome/browser/resources/task_manager/includes.js File chrome/browser/resources/task_manager/includes.js (right): http://codereview.chromium.org/8993007/diff/15001/chrome/browser/resources/task_manager/includes.js#newcode75 chrome/browser/resources/task_manager/includes.js:75: loadDelayedIncludes = function (taskmanager) ...
9 years ago (2011-12-21 06:08:47 UTC) #8
James Hawkins
SLGTM
9 years ago (2011-12-21 17:31:49 UTC) #9
arv (Not doing code reviews)
http://codereview.chromium.org/8993007/diff/17003/chrome/browser/resources/task_manager/includes.js File chrome/browser/resources/task_manager/includes.js (right): http://codereview.chromium.org/8993007/diff/17003/chrome/browser/resources/task_manager/includes.js#newcode67 chrome/browser/resources/task_manager/includes.js:67: document.write('<script src="' + prefix + 'js/' + script[i] + ...
9 years ago (2011-12-21 20:19:42 UTC) #10
yoshiki
Thanks. PTAL http://codereview.chromium.org/8993007/diff/17003/chrome/browser/resources/task_manager/includes.js File chrome/browser/resources/task_manager/includes.js (right): http://codereview.chromium.org/8993007/diff/17003/chrome/browser/resources/task_manager/includes.js#newcode67 chrome/browser/resources/task_manager/includes.js:67: document.write('<script src="' + prefix + 'js/' + ...
9 years ago (2011-12-22 08:50:30 UTC) #11
arv (Not doing code reviews)
http://codereview.chromium.org/8993007/diff/22001/chrome/browser/resources/task_manager/main.js File chrome/browser/resources/task_manager/main.js (right): http://codereview.chromium.org/8993007/diff/22001/chrome/browser/resources/task_manager/main.js#newcode416 chrome/browser/resources/task_manager/main.js:416: // If the delayed include files (included in includes.js) ...
9 years ago (2011-12-22 20:49:13 UTC) #12
yoshiki
PTAL http://codereview.chromium.org/8993007/diff/22001/chrome/browser/resources/task_manager/main.js File chrome/browser/resources/task_manager/main.js (right): http://codereview.chromium.org/8993007/diff/22001/chrome/browser/resources/task_manager/main.js#newcode416 chrome/browser/resources/task_manager/main.js:416: // If the delayed include files (included in ...
8 years, 12 months ago (2011-12-26 04:40:58 UTC) #13
yoshiki
arv: ping? On 2011/12/26 04:40:58, yoshiki wrote: > PTAL > > http://codereview.chromium.org/8993007/diff/22001/chrome/browser/resources/task_manager/main.js > File chrome/browser/resources/task_manager/main.js ...
8 years, 11 months ago (2012-01-11 14:17:21 UTC) #14
James Hawkins
arv is OOO till 1/15.
8 years, 11 months ago (2012-01-11 16:16:25 UTC) #15
yoshiki
ok, thanks. On 2012/01/11 16:16:25, James Hawkins wrote: > arv is OOO till 1/15.
8 years, 11 months ago (2012-01-12 11:31:37 UTC) #16
arv (Not doing code reviews)
http://codereview.chromium.org/8993007/diff/26001/chrome/browser/resources/task_manager/includes.js File chrome/browser/resources/task_manager/includes.js (right): http://codereview.chromium.org/8993007/diff/26001/chrome/browser/resources/task_manager/includes.js#newcode80 chrome/browser/resources/task_manager/includes.js:80: for (var i = 0; i < scriptDelayed.length; ++i) ...
8 years, 11 months ago (2012-01-17 21:47:06 UTC) #17
yoshiki
arv: Thank you for comments. PTAL https://chromiumcodereview.appspot.com/8993007/diff/26001/chrome/browser/resources/task_manager/includes.js File chrome/browser/resources/task_manager/includes.js (right): https://chromiumcodereview.appspot.com/8993007/diff/26001/chrome/browser/resources/task_manager/includes.js#newcode80 chrome/browser/resources/task_manager/includes.js:80: for (var i ...
8 years, 11 months ago (2012-01-18 16:54:28 UTC) #18
arv (Not doing code reviews)
lgtm https://chromiumcodereview.appspot.com/8993007/diff/36006/chrome/browser/resources/shared/js/cr/ui/context_menu_handler.js File chrome/browser/resources/shared/js/cr/ui/context_menu_handler.js (right): https://chromiumcodereview.appspot.com/8993007/diff/36006/chrome/browser/resources/shared/js/cr/ui/context_menu_handler.js#newcode219 chrome/browser/resources/shared/js/cr/ui/context_menu_handler.js:219: * @param {!Element|!Function} element The element or class ...
8 years, 11 months ago (2012-01-18 19:19:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/8993007/42002
8 years, 11 months ago (2012-01-19 15:17:57 UTC) #20
commit-bot: I haz the power
8 years, 11 months ago (2012-01-19 16:29:33 UTC) #21
Change committed as 118303

Powered by Google App Engine
This is Rietveld 408576698