In Core Web Vitals, we have high Total Blocking Time and it seems the main culprit is this script in Ninja Forms. If it is commented out, Ninja Forms does not load - obviously not a solution. But I would love to figure out a way to stop it from impacting the load performance.
This seems to be the specific code in front-end.js causing it:
//Simulate async callback;
if (forceSync) {
main(undef, deps, callback, relName);
} else {
//Using a non-zero value because of concern for what old browsers
//do, and latest browsers "upgrade" to 4 if lower value is used:
//http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout:
//If want a value immediately, use require('id') instead -- something
//that works in almond on the global level, but not guaranteed and
//unlikely to work in other AMD implementations.
setTimeout(function () {
main(undef, deps, callback, relName);
}, 4);
}
return req;
Performance: