1. A method for offloading execution of a portion of a client-side Web application to a server, the method comprising: receiving a client-side scripting language file; identifying a function to-be-offloaded in the client-side scripting language file; wherein the function to-be-offloaded has a function body and a list of one or more parameters; generating an offloaded function based on the function to-be-offloaded; replacing, in the scripting language file, the function body of the function to-be-offloaded with a set of client-side scripting language instructions which, when executed by an end-user computing device as a result of a call to the function to-be-offloaded, cause one or more arguments, corresponding to the one or more parameters passed into the function to-be-offloaded by the call to the function, to be marshalled and sent to a server in one or more first network messages.