A data processing method, comprising: receiving, at a server, a request, dedicated for a web page, sent by a terminal device, wherein the web page comprises an image; dividing, by the server, the image into multiple sub-images; generating, by the server, image code corresponding to each sub-image based on the multiple sub-images; determining, by the server, HyperText Markup Language code of the web page, wherein the HyperText Markup Language code comprises the generated image code corresponding to each of the multiple sub-images, wherein the image code is configured to enable the terminal device to render each of the multiple sub-images without sending a request for each sub-image, wherein determining the HyperText Markup Language code of the web page comprises: determining the image code corresponding to each sub-image obtained by dividing the image, writing each piece of image code into scripting language code, wherein the scripting language code comprises JavaScript code, wherein writing each piece of image code into scripting language code comprises: determining a sorting sequence of all the sub-images based on a position relationship between the sub-images in the image, wherein determining the sorting sequence comprises determining positions of the sub-images in the web page based on a position of the image in the web page and the positions of the sub-images in the image, and sequentially writing the image code corresponding to each sub-image into the scripting language code based on the sorting sequence, writing the scripting language code into the HyperText Markup Language code of the web page, and using HyperText Markup Language code that the scripting language code has been written into as new HyperText Markup Language code of the web page; and sending, from the server, the new HyperText Markup Language code to the terminal device, so that after receiving the new HyperText Markup Language code, the terminal device renders each sub-image based on the image code corresponding to each sub-image and comprised in the new HyperText Markup Language code. receiving, at a server, a request, dedicated for a web page, sent by a terminal device, wherein the web page comprises an image; dividing, by the server, the image into multiple sub-images; generating, by the server, image code corresponding to each sub-image based on the multiple sub-images; determining, by the server, HyperText Markup Language code of the web page, wherein the HyperText Markup Language code comprises the generated image code corresponding to each of the multiple sub-images, wherein the image code is configured to enable the terminal device to render each of the multiple sub-images without sending a request for each sub-image, wherein determining the HyperText Markup Language code of the web page comprises: determining the image code corresponding to each sub-image obtained by dividing the image, writing each piece of image code into scripting language code, wherein the scripting language code comprises JavaScript code, wherein writing each piece of image code into scripting language code comprises: determining a sorting sequence of all the sub-images based on a position relationship between the sub-images in the image, wherein determining the sorting sequence comprises determining positions of the sub-images in the web page based on a position of the image in the web page and the positions of the sub-images in the image, and sequentially writing the image code corresponding to each sub-image into the scripting language code based on the sorting sequence, writing the scripting language code into the HyperText Markup Language code of the web page, and using HyperText Markup Language code that the scripting language code has been written into as new HyperText Markup Language code of the web page; and determining the image code corresponding to each sub-image obtained by dividing the image, writing each piece of image code into scripting language code, wherein the scripting language code comprises JavaScript code, wherein writing each piece of image code into scripting language code comprises: determining a sorting sequence of all the sub-images based on a position relationship between the sub-images in the image, wherein determining the sorting sequence comprises determining positions of the sub-images in the web page based on a position of the image in the web page and the positions of the sub-images in the image, and sequentially writing the image code corresponding to each sub-image into the scripting language code based on the sorting sequence, determining a sorting sequence of all the sub-images based on a position relationship between the sub-images in the image, wherein determining the sorting sequence comprises determining positions of the sub-images in the web page based on a position of the image in the web page and the positions of the sub-images in the image, and sequentially writing the image code corresponding to each sub-image into the scripting language code based on the sorting sequence, writing the scripting language code into the HyperText Markup Language code of the web page, and using HyperText Markup Language code that the scripting language code has been written into as new HyperText Markup Language code of the web page; and sending, from the server, the new HyperText Markup Language code to the terminal device, so that after receiving the new HyperText Markup Language code, the terminal device renders each sub-image based on the image code corresponding to each sub-image and comprised in the new HyperText Markup Language code.