How do you include a JavaScript file in another JavaScript file?

Learn three methods for managing multiple scripts within a JavaScript project.

By Craig Buckler
October 10, 2016

Client-side JavaScript offers no way to manage multiple scripts within the browser. If you have 20 scripts, you must place 20 script tags into a page in the correct order. Luckily, there are workarounds. In this video Craig Buckler demonstrates three of these: Ajax techniques, transpilers, and build tools. Novice JavaScript developers should know each of these methods, which are crucial to the management of files and dependencies.

Learn faster. Dig deeper. See farther.

Join the O'Reilly online learning platform. Get a free trial today and find answers on the fly, or master something new and useful.

Learn more
Post topics: Web Programming
Post tags: Questions
Share:

Get the O’Reilly Radar Trends to Watch newsletter