summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/html.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/render/html.c b/render/html.c
index c377b72a5..b39224970 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1509,7 +1509,10 @@ nserror html_object_callback(hlcache_handle *object,
c->base.active--;
html_object_done(box, object, o->background);
- if (box->flags & REPLACE_DIM) {
+ if (c->base.status != CONTENT_STATUS_LOADING &&
+ box->flags & REPLACE_DIM) {
+ /* Redraw newly available object if parent content is
+ * displayable, and the object's box size is known */
union content_msg_data data;
if (!box_visible(box))