I have a WordPress website, with a contact form link in all my pages. When clicking the "contact us" link, there should open a div (dynamically) in the center of the page and send the information (dynamically too)...
Correct me if I'm wrong, but including the same HTML code of the undisplayed div with all the Javascript functions will make the load time of my page/s too long.
Is there a way to pull out the HTML only if clicked on the contact from? Maybe getting it from an external HTML file ?
What's the efficient way to do this using WP ?