Algorithms and data structures for JS/TS
  • Introduction
  • GETTING STARTED
    • TS
    • Node.js
    • ES Modules
    • Browsers
  • PUBLIC API
    • How to read
    • Linked lists
      • SinglyLinkedList
      • DoublyLinkedList
      • CircularlyLinkedList
    • Stacks and queues
      • LinkedStack
      • LinkedQueue
      • LinkedDeque
      • CircularQueue
      • CircularArrayBuffer
      • UnsortedPriorityQueue
      • SortedPriorityQueue
      • AdaptableHeapPriorityQueue
    • Maps
      • SortedMap
      • MaximaSet
      • AVLTreeMap
      • SplayTreeMap
      • RedBlackTreeMap
    • Trees
      • GeneralTree
      • LinkedBinaryTree
      • PreorderTreeTraversal
      • InorderTreeTraversal
      • PostorderTreeTraversal
      • EulerTourTreeTraversal
    • Searches
      • Binary search
      • Quick select
    • Text processing
      • Longest common subsequence
      • Boyer-Moore
      • Knuth-Morris-Pratt
    • Position
    • Locator
    • Comparators
  • CONTRIBUTION NOTES
    • How to contribute
    • Project structure
  • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. GETTING STARTED

Browsers

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

PreviousES ModulesNextHow to read

Last updated 5 years ago

Was this helpful?

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.

This library is built for ES6 by default so ensure all your target browsers have support for it. Rebuilding this library for earlier versions of ECMAScript is on your own decision.

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

PUBLIC API