问题 I'm using window.matchMedia conditional in order to avoid the inject of a video in mobile devices. Here it says that matchMedia is going to work smoothly since Safari 9 (I'm testing on it), but my code is completly ignored: if ( window.matchMedia("(min-width: 1025px").matches) { console.log('match'); document.addEventListener("DOMContentLoaded", function() { initialiseMediaPlayer(); }, false); function initialiseMediaPlayer() { (stuff here...) } } This code works perfectly on Chrome, Chromium