Skip to content

Instantly share code, notes, and snippets.

@cssmagic
Last active December 21, 2015 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cssmagic/6332901 to your computer and use it in GitHub Desktop.
Save cssmagic/6332901 to your computer and use it in GitHub Desktop.
我自己在用的 LABjs 种子脚本,300 字节。
(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));
@cssmagic
Copy link
Author

亮点如下:(待完成)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment