...
The pui.beforeRender event receives one parameter object that represents the server's response to the browser. It includes all screen layers, formats, widget metadata, and screen data. The response object can be modified directly or modified and returned by the event.