http://www.perlmonks.org?node_id=1018808


in reply to Run Perl script on remote server

If speed is an issue, Create the page on server B as a template with specific DIVs labeled to hold the dynamic content. Use AJAX and jQuery to load the html as a string from server B. Then insert the text into the appropriate DIVs using their labels. Throw a nice loading gif as a placeholder and bam, good to go. No blank page while waiting for the AJAX loads.