<div id="bgOut">from cache</div>
<script src="jquery-2.2.3.min.js"></script>
<script>
$(window).load(function() {
var bg='http://img.infinitynewtab.com/wallpaper/100.jpg';
setTimeout(function() {
$('#bgOut').css('background-image', 'url('+bg+')');
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://g.alicdn.com/secdev/pointman/js/index.js';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
},0);
});
</script>
jquery-2.2.3.min.js文件请自行准备
参考链接:https://www.zhihu.com/question/28725359 柳易寒回复