3 ms·
> I don't know or use the Facebook SDK, but would it be possible to simply disable it and continue running, but without the features it provides? The beauty (o
by capableweb 6y ago
> I don't know or use the Facebook SDK, but would it be possible to simply disable it and continue running, but without the features it provides?
The beauty (or ugly, for some) of JS is that it depends on how you use it. If you just call the initialize function (which seems to be down, somehow?) of the FB SDK in the top scope of your page, all code below it is invalid. If you're including it as a script, that script will fail. If it's in a response to some onload event, the rest of the onload body will not execute either.
Not to say you should always expect errors from any 3rd party libraries unless you can guarantee it won't throw, that's just basic error handling.