Use react as the front-end, and php is responsible for . Ajax is used to transmit data. After rendering the page, you can perform subsequent operations. However, if ajax is used to load the page for the first rendering, it will feel a little slower. Is there any good solution? Use react as the front-end, and php is responsible for . Ajax is used to transmit data.
After rendering the page, you can perform subsequent operations.
However, if ajax is used to load the page for the first rendering, it will feel a little slower.
Is there any good solution?
Reply content:
After rendering the page, you can perform subsequent operations.
However, if ajax is used to load the page for the first rendering, it will feel a little slower.
Is there any good solution?
Just do a loading job, or make the HTML output to PHP at the same time, and the data is also output to the page variable. in this way, the home page saves Ajax loading.
Front end:
When using react, is it useful to the whole house bucket? What about webpack packaging?
If the image is used, check whether lazy loading is supported.
Backend:
No front-end. it takes a lot of time to use chrome app postman to test whether ajax loading is simple. If yes, check whether the ping value of the server, Database SQL statements, and design can be optimized.
Between frontend and backend:
Use Relay and GraphQL. This is a big workload. they are using Facebook's open-source project.
The lazy method:
Add a splash screen (similar to the transition picture of the logo in the center when the mobile app is opened) or a prompt in data loading (loading ...)