7 ms·
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.pu
by eMSF 8y ago
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version=’2.0′;n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,’script’,’//connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘239547076708948’);
fbq(‘track’, “PageView”);
Interesting footnote.
- deleted 8y ago[deleted]
- craftyguy 8y agoOh the irony of trying to implement some facebook tracking crap on an article about RMS.
- yesenadam 8y agoWell, it was a snarky and belittling article at least.
- gpvos 8y agoHow? I don't see it. (I'm afraid your comment makes a snarky and belittling impression on me though.)
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- jordigh 8y agoMaybe the simple mention of Stallman is what broke the attempt at surveillance. :-)
- Rjevski 8y agoSidenote: does anyone know why all these cancer scripts use this approach of using an initial Javascript payload to create a `script` tag, instead of just being a `script` tag directly?
- m3talsmith 8y agoOne thing I can think of is trying to avoid caching.
- toyg 8y agoProbably to dictate precisely when they get loaded, rather than relying on browser behaviour.
- etaioinshrdlu 8y agoA injected script element was last I checked the only way to send a piece of data to a remote server on a third party domain without a preflight OPTIONS request. Less round trips. Less bandwidth. For more reading look here:http://dev.housetrip.com/2014/04/17/unleash-your-ajax-requests-with-cors/ http://dev.housetrip.com/2014/04/17/unleash-your-ajax-reques... But in general here's what is wanted. - No OPTIONS request - Third party domain. - withCredentials - pass cookies in the request. The best option in this case is actually a injected async script element. Source: worked in ad tech a few years ago. Looked into all the possible options, this came up least bad, and explained why it was so popular.
- lancefisher 8y agoThat's right. Check out JSONP for more info: https://en.wikipedia.org/wiki/JSONP https://en.wikipedia.org/wiki/JSONP This was really common before CORS.
- Vinnl 8y ago> The best option in this case is actually a injected async script element. I thought dynamically injected script elements were async by default? https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement#Dynamically_importing_scripts https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptE...
- foxfired 8y agoThis is the kind of website that simply republishes articles from different websites and puts a source link in the button. The process is automated. The script you see is actually from the original article on coindesk.com. It's a failure of their extracting script. Note: You can compare the tracking script id to the one on coindesk. It's the same.