1. A method of operating a web-platform in an electronic apparatus, the method comprising: receiving data of a web page from a server; compressing a root layer of the web page based on the received data of the web page to generate a compressed file; storing the compressed file in a memory; rendering a graphic layer of the web page based on the received data of the web page; decoding the compressed file and rendering the root layer decoded from the compressed file, and composing the rendered root layer and the rendered graphic layer in a frame.