Unless you have a very small or static dataset, it will usually not be embedded in your web page. You will probably use an asynchronous request to load it from a separate file after your HTML page is already loaded and then parse it. This section covers topics related to loading and parsing external files.
Loading and parsing external data files Â
Using a Web server
Most of the examples in this book consist of a single file (not considering the external libraries loaded using the <script> tags), and you can run them by simply opening them in a browser. You don't even need a Web server. Just click on the file and view it in your browser. But this won't work in examples that load external files via...