Merge lp:~gmb/launchpad/speed-up-subscription-overlay-bug-719249 into lp:launchpad
Proposed by
Graham Binns
Status: | Merged |
---|---|
Merged at revision: | 12411 |
Proposed branch: | lp:~gmb/launchpad/speed-up-subscription-overlay-bug-719249 |
Merge into: | lp:launchpad |
Diff against target: |
80 lines (+35/-7) 1 file modified
lib/lp/bugs/javascript/bugtask_index_portlets.js (+35/-7) |
To merge this branch: | bzr merge lp:~gmb/launchpad/speed-up-subscription-overlay-bug-719249 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+50148@code.launchpad.net |
Commit message
[r=allenap][bug=719249] The advanced bug subscription overlay is now pre-populated in order to speed it up a bit.
Description of the change
This branch tweaks the new advanced bug subscription overlay to make it
faster by pre-loading the contents of the overlay when it is initally
created (this is done asynchronously and doesn't affect page render
time).
The overlay is also repopulated after the user makes a change to their
subscription, subscribes or unsubscribes, so that the overlay will
always appear quickly but will also always have the right stuff in it.
To post a comment you must log in.
Nice improvement.
[1]
+ subscription. enable_ spinner( ); disable_ spinner( );
...
+ subscription.
This pair runs in the same function; the spinner is not disabled after
some asynchronous activity via a callback or event. I doubt that the
spinner will appear for anything more than a fraction of a second,
possibly not at all.
[2]
+ subscription. disable_ spinner( ); overlay
+
return subscription_
Not your change, but there's no semi-colon here.