This article covers the following:
Overview
Asynchronous Wingify SmartCode loads in parallel with your webpage, ensuring it has no impact on your website's loading time.
The asynchronous script uses two key timeout variables to manage its execution:
- settings_tolerance: Defines how long the script waits for page settings to load. If the settings load within this window, the code proceeds to request the Wingify library (va.js or vanj.js) from our CDN.
-
library_tolerance: Defines how long the script waits for the Wingify library file to load. If the library fails to load within this interval, the page falls back to displaying the original (control) version of the content.
Note: If your account ID is 460038 or higher, Wingify serves a customized, lightweight library, five times smaller than jQuery v1.4.2, to keep your website performant. Accounts with IDs below this threshold are unaffected and continue to work normally. Read this blog post to learn more about these performance improvements.
To learn about using Wingify with Single Page Applications, refer to How to Use Wingify for Single Page Applications.
Workflow of Asynchronous SmartCode
Advantages of Asynchronous SmartCode
- Faster page loads: Asynchronous code loads in parallel with your website, so it never slows down the page experience. Synchronous code, by contrast, runs statements one at a time and can halt entirely if even a single statement fails.
- Greater control & reliability: You can define custom timeout thresholds for Wingify to execute. If the code doesn't run within that window, it gracefully stops and serves the original page content, ensuring visitors always get a consistent, uninterrupted experience.
Need more help?
For further assistance or more information, contact Wingify Support.