This is intriguing: a TechRepublic article about using JavaScript to generate code on the client-side, where bandwidth is limited.
Doesn't use Perl, but source code listings in ASP could be translated to Perl.
An excerpt from the article:
On a recent project we had a very complex Web application to deliver in an environment where many of the end users had slow connections to the server on which the application was to be deployed. As such, conservation of bandwidth was one of the priorities. We decided to design for bandwidth constraints from the beginning of the project. This focus led to a key decision to develop the application primarily using client-side scripted codeââ¬âin this case written in JavaScriptââ¬âwhich could be cached locally and by the proxy servers, etc. upstream of the end user, resulting in a significantly smaller package needing to be retrieved from the main servers.