Home >Web Front-end >HTML Tutorial >How to quickly display large amounts of text on a web page? _html/css_WEB-ITnose

How to quickly display large amounts of text on a web page? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:18:401749browse

I have a test webpage in which the query results need to be displayed. The query results are in plain text format, with a maximum size of nearly 1M. I use textarea for display, and the page display speed is very slow. Is there any way to improve it?


Reply to the discussion (solution)

I have a test webpage, in the middle Query results need to be displayed. The query results are in plain text format, with a maximum size of nearly 1M. I use textarea for display, and the page display speed is very slow. Is there any way to improve it?
is displayed in a div. You can consider paging and asynchronous loading. Display a part first, and then click the next page to display the rest. .

Quoting the reply from the poster houwenqiang: I have a test webpage, and the query results need to be displayed in the middle. The query results are in plain text format, with a maximum size of nearly 1M. I use textarea for display, and the page display speed is very slow. Is there any way to improve it?
is displayed in a div. You can consider paging and asynchronous loading. Display a part first, and then click the next page to display the rest. .
1

The server side cuts the text (similar to paging operation), and the client uses ajax to request multiple times

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn