Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
overlay.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2009 at 16:37 UTC
Updated:
29 Dec 2009 at 05:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
xmacinfoHere is my original comment on how to add back the throbber:
To fix this we need to dynamically add a class to the overlay container when the iframe is loaded.
From
<div id="overlay-container" class="ui-dialog-content ui-widget-content" [...]>To
<div id="overlay-container" class="ui-dialog-content ui-widget-content loaded" [...]>Once the "loaded" class is added in the "overlay-container", we could then override the loading image properly through CSS.
.overlay #overlay-container.loaded {background-image: none;}
I guess we need a jQuery pro here to add the "loaded" class when the page have finished loading.
We could then reapply the original loading line. ;-)
Comment #2
kiphaas7 commentedSlight variation on the way xmacinfo describes it, but not that much :).
Comment #3
kiphaas7 commentedComment #4
xmacinfoGreat! I'll test it with the same environment I used to test out the old "loading" image performance. :-)
Comment #5
xmacinfo@Kiphaas7: Thank you. Now we can have back the "loading" image and not cause performance issue by letting it run in the background.
I tried this patch and commented the
line and my CPU jumped to 50% usage with Firefox. And using this patch as is, the CPU spiked at loading page and resumed at 5%. Which is expected on my old computer. I also checked for the loading image with Firebug to see if the image was still active, which is not.
This patch properly disable the "loading" image when the iframe is loaded. So I mark this as RTBC.
Please note that other performance issues with the overlay must have their own issues.
Comment #6
ksenzee+1 to both the patch and the approach. When I tested it, I got the same results as xmacinfo. I think this is ready to go back in.
Comment #7
webchickGreat work! Committed to HEAD.