Creating a load function to simulate server requests and responses (no server for now)