Getting Started

Duda's Javascript API allows you to get access to common helper functions or specific actions taken on a website. The JS API can be used in conjunction with javascript code for Widget Builder or with individual Duda Responsive Websites.

Overview

This JS API is available with every website and loads asynchronously. The object is always available under the global dmAPI namespace.

It is strongly recommended to place any code using Duda's JS api in the body-end.html file. If placed elsewhere on the page (ex. header or body), you risk the website not being page speed optimized.

How to use the API

The best and easiest way to add this code to individual websites is to place it in the body-end, found in developer mode.

If done correctly, it should look like this in Developer Mode.


What’s Next
Did this page help you?