I want to call the resize event using code.
I am using following code .It is working fine in otherbrowsers but not in the IE11.
if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) {
$(window).trigger('resize');
} else {
window.dispatchEvent(new Event('resize'));
}
Please advice me, am I missing anything?