Skip to content

Instantly share code, notes, and snippets.

@Kjaer
Created May 22, 2016 14:40
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 Kjaer/09bf7f72eb0f0b34b6edd43e9e300839 to your computer and use it in GitHub Desktop.
Save Kjaer/09bf7f72eb0f0b34b6edd43e9e300839 to your computer and use it in GitHub Desktop.
(function (w, d, s) {
function go() {
var js,
fjs = d.getElementsByTagName(s)[0],
load = function (url, id) {
if (d.getElementById(id)) { return; }
js = d.createElement(s);
js.src = url;
js.id = id;
fjs.parentNode.insertBefore(js, fjs);
};
load('//connect.facebook.net/tr_TR/all.js', 'facebook-jssdk');
}
if (w.addEventListener) { w.addEventListener("load", go, false); }
else if (w.attachEvent) { w.attachEvent("onload", go); }
}(window, document, 'script'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment