Skip to content
Snippets Groups Projects
Commit d87533cd authored by Angie Byron's avatar Angie Byron
Browse files

#667074 by Kiphaas7: Fixed Very slow / delayed fade in with overlay on Firefox.

parent 409d2969
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -318,14 +318,15 @@ Drupal.overlay.load = function (url) {
// dialog. The loaded class is not removed and added back again while
// switching between pages with the overlay already open, due to
// performance issues (see http://drupal.org/node/615130).
self.$dialog.removeClass('overlay-loaded');
self.$iframe
.css('opacity', 0.2)
.css('visibility', 'hidden')
.load(function () {
self.isLoading = false;
// Only continue when overlay is still open and not closing.
if (self.isOpen && !self.isClosing) {
self.$iframe.css('opacity', 1);
self.$iframe.css('visibility', '');
self.$dialog.addClass('overlay-loaded');
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment