js: add another disadvantage about Ajax

This commit is contained in:
Yangshun Tay 2020-01-28 00:29:46 +08:00
parent 6830fb0ffb
commit 6ff3921dae
1 changed files with 1 additions and 0 deletions

View File

@ -518,6 +518,7 @@ The `XMLHttpRequest` API is frequently used for the asynchronous communication o
- Dynamic webpages are harder to bookmark.
- Does not work if JavaScript has been disabled in the browser.
- Some webcrawlers do not execute JavaScript and would not see content that has been loaded by JavaScript.
- Webpages using Ajax to fetch data will likely have to combine the fetched remote data with client-side templates to update the DOM. For this to happen, JavaScript will have to be parsed and executed on the browser, and low-end mobile devices might struggle with this.
- Basically most of the disadvantages of an SPA.
[[↑] Back to top](#js-questions)