What mbox.js does
Information to help your technical staff understand the mbox.js implementation and how it might affect your site.
Target Standard requires mbox.js version 58 or later. For instructions on how to download and update mbox.js, see Mbox Implementation .
Target.js creates an mbox called target-global-mbox in the <head> section of your page.
Target.js has two functions in Target:
- DOM manipulation
- Enables visual elements of the Visual Experience Composer
In addition, the following snippet is used for polling the DOM: https://github.com/dperini/ContentLoaded
Target.js and the Visual Experience Composer
- For thumbnail generation: https://html2canvas.hertzen.com/
- For cross-domain query: Admin.js, CDQ.base.js, CDQ.host.js, admin.css, used to send messages across the iFrames. These scripts allow Adobe to send data between the pages.
Considerations for Angular Sites and Single-Page Applications
If you are implementing Target in an Angular site or in any Single-Page Application (SPA), you should use the at.js library instead of mbox.js.
For more information, see at.js Implementation .