Documentation Menu

Free CDN

If you serve the jsnlog.js file from your own web server, then the distance between your server and your user delays loading of the file. For example, your web server is in the US and your visitor is in Europe.

To solve this, you can host jsnlog.js and other static files on a Content Distribution Network (CDN). This automatically places your files on servers around the world. This way, your files are served from whatever server is closest to your user.

So you don't have to find a CDN yourself, jsnlog.min.js is hosted on cdnjs (world wide locations).

All you need to do to load jsnlog.js from this CDN is change the url of the script tag that loads jsnlog.js to the url provided by cdnjs for jsnlog.js:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jsnlog/2.26.2/jsnlog.min.js"></script>

If you have the script tag generated for you, change the productionLibraryPath property:

<jsnlog productionLibraryPath="https://cdnjs.cloudflare.com/ajax/libs/jsnlog/2.26.0/jsnlog.min.js">
</jsnlog>
JavascriptLogging.SetJsnlogConfiguration(
  new JsnlogConfiguration {
      productionLibraryPath="https://cdnjs.cloudflare.com/ajax/libs/jsnlog/2.26.0/jsnlog.min.js"
  });