Last active
December 21, 2015 16:19
-
-
Save cssmagic/6332901 to your computer and use it in GitHub Desktop.
我自己在用的 LABjs 种子脚本,300 字节。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(d){ | |
var src='/path/to/lab.js'; | |
if(window.$LAB){$LAB.src=src;ini()}else{setTimeout(function(){ | |
var e=d.createElement('script');e.onload=function(){e.onload=null;ini()}; | |
e.src=src;var s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(e,s)},0)} | |
function ini(){ | |
//do some $LAB stuff here... | |
}}(document)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
亮点如下:(待完成)