Skip to content

Instantly share code, notes, and snippets.

@pbuzdin
Last active August 29, 2015 14:28
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 pbuzdin/f28cca91642f73faa929 to your computer and use it in GitHub Desktop.
Save pbuzdin/f28cca91642f73faa929 to your computer and use it in GitHub Desktop.
lifter.com.ua assets loader
<script type="application/javascript">
(function(d){
var scripts = {"gl":d.createElement("script"), "fb":d.createElement("script"), "cbb":d.createElement("script"), "tpl":d.createElement("script")};
var stls = {"ico":d.createElement("link"), "tpl":d.createElement("link"), "sns":d.createElement("link"), "unt":d.createElement("link")};
stls.ico.rel="icon";
stls.ico.type="image/png";
stls.tpl.rel = stls.sns.rel = stls.unt.rel ="stylesheet";
stls.tpl.type = stls.sns.type = stls.unt.type ="text/css";
stls.ico.href="/tpls/lifter/imgs/favicons.png";
stls.sns.href="http://fonts.googleapis.com/css?family=Open+Sans&subset=latin,cyrillic";
stls.unt.href="http://fonts.googleapis.com/css?family=Ubuntu+Condensed&subset=latin,cyrillic";
stls.tpl.href="/tpls/lifter/wide.css";
for(var key in stls) d.head.appendChild(stls[key]);
scripts.gl.async = scripts.fb.async = true;
scripts.fb.id = "facebook-jssdk";
scripts.gl.src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";
scripts.fb.src = "//connect.facebook.net/ru_RU/sdk.js";
scripts.cbb.src = "/js/C-BBLe-2_0.js";
scripts.tpl.src = "/tpls/lifter/template.js?feed=1";
for(var key in scripts) d.head.appendChild(scripts[key]);
}(document));
window.fbAsyncInit=function(){
FB.init({
appId:"119878838351040",
//xfbml:true,
cookie:true,
status:true,
version:"v2.4"
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment