Pardot Knowledge Base

Optimizing Advanced Dynamic Content Performance

Last Updated: Nov 29, 2017 | Print this Article
The following relies on functionality built in to modern browsers and is unsupported by Internet Explorer versions 6 and 7.
With a couple of small changes, you can optimize your dynamic content so it loads asynchronously after the rest of the page has loaded.
  1. Place <div> elements where you would like the dynamic content to appear on the page.
  2. Specify a data-dc-url="[URL for your dynamic content]" attribute.
  3. You'll also want to style those div elements to have the same width and height as the content that will be dynamically inserted so the layout does not have to reflow when the dynamic content is added to the page. Example:
  4. Then, add the following script (jQuery is required on the page):

Need more? Start a conversation with other Pardot users in the Trailblazer Community