Including a Dojo layer file in your web page

A layer is a single JavaScript file that contains and compresses an entire Dojo library and any dependencies. To reduce the amount of time it takes to retrieve a resource, you can load Dojo layers by using the HTML script tag. The layer files are loaded asynchronously reducing the load time.

About this task

To include a Dojo layer file in your web page, drag the layer file from Enterprise Explorer onto your web page.

Results

The layer is added to your file source. This is how it looks:
<script language="JavaScript" src="dojo.js"></script>

What to do next

Now, you can Add Dojo widgets to your web pages.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tdojolayer.html