Good day, I'm trying to reduce the jquery dom manipulations by including the right plugin functions in my theme's functions.php file. For example, I have a link which triggers a jquery dialog, which in turn holds the custom contact widget, another one which triggers a jquery dialog which holds a contact widget and so on and so forth.
All those dom manipulations have a severe impact performance-wise, so is there any way I can include the plugin's constructor in the divs which are converted to jquery dialogs?