Browsers

Getting started with ADSJS loaded as bundle on a web page.

You can add ADSJS on your web page in a single <script> tag. Bundles are available for both full library and for its parts. Please note that if you use many different algorithms and data structures from ADSJS in your project it may turn to be more efficient to load the whole library at once because sub-bundles may have some code in common.

To add ADSJS into your project load it on your web page as:

<!-- in the example below put correct values instead of < ... > -->
<script src="<path_to_your_scripts>/ads-js<.min>.js"></script>

Then access any loaded class/function via global adsjs in your source code.

You can load source maps as well if you need debugging. All bundles and source maps itself may be found at 'dist/bundles' in package installation directory.

Visit PUBLIC API section to get further details about capabilities of this library.

Last updated

Was this helpful?