Hosting

Note: this documentation is for the 1.x versions of the JavaScript SDK. The current version can be found here.

By default, the SDK will be loaded from Schibsted account's servers. You may host it in your own environment during testing and by request when in production. If the cookie option is set to true, the cookies will be created for your own domain.

Loading the JS SDK directly from Schibsted account is recommended for performance reasons. This way, the SDK is cached across clients, meaning that users that have previously visited other clients may not need to download the SDK for your site.

To use a local copy of the SDK, download the latest version from GitHub. Note that both the unminified and minified versions bundle the JSON2.js script. If you do not need it (e.g., you don't need support for <= IE7), download the source code and build it yourself. Refer to the JS SDK Readme for how to do this.

Read more about the JavaScript SDK

See also

Help us improve

Did you spot an error? Or maybe you just have a suggestion for how we can improve? Leave a comment, or better yet, send us a pull request on GitHub to fix it (in-browser editing, only takes a moment).

History of this page

Comments/feedback

Do you have questions, or just want to contribute some newly gained insight? Want to share an example? Please leave a comment. SPiD reads and responds to every question. Additionally, your experience can help others using SPiD, and it can help us continuously improve our documentation.