Where is the .JS file in this code? And why are they calling it this way?

后端 未结 5 610
我在风中等你
我在风中等你 2021-01-07 16:00

Where is the JS file and is this Async the fastest way to call JS?

I guess they then have PHP calls in the .JS for updating the Ad stats??

The code:

5条回答
  •  攒了一身酷
    2021-01-07 16:20

    Most of that code is for loading the JavaScript code asynchronously, in a way that works in different browsers. An explanation of how it works is here: http://friendlybit.com/js/lazy-loading-asyncronous-javascript/

    Loading asynchronously means that the browser doesn't wait for it to finish. So the ad won't load faster, but the rest of the page will.

    If you piece together the string, you'll find that the JavaScript file they're loading is: http://engine.influads.com/show/h/nocss/acc_230d269_pub

提交回复
热议问题