https://github.com/dimsemenov/Magnific-Popup/issues/578
Perfomance fix. Support IE9+