I\'m using jQuery blockUI plugin to show some nifty \"loader\" on each AJAX call and each URL change.
Here is full code responsible for that:
var roo
I managed to solve this problem, dropping the
idea in favor of CSS and classes:
Changing blockUI plugin call to:
$.blockUI.defaults.message = $('#blockui-animated-content');
$.blockUI.defaults.css.top = '45%';
$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);
$(window).on('beforeunload', function(){$.blockUI();});
Now, all works just fine, both in AJAX and URL change. Unfortunately, this doesn't answer the question: "Why Firefox and Chrome doesn't display images from
tags in onbeforeunload
event?".