= 2) { if (arr[0] > 1 || (arr[0] == 1 && arr[1] >= 3)) { return true } } } return false } if (check()) { doMyStuff(jQuery) } else { var script = document.createElement('script') script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js' window.addEventListener('load', function () { document.body.insertBefore(script, document.body.firstChild) var timer = setInterval(function () { if (check()) { clearInterval(timer) document.body.removeChild(script) doMyStuff(jQuery.noConflict(true)) } }, 30) }) }