From 6ff3921daef9f44b0475cd594d7e715d6251b336 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Tue, 28 Jan 2020 00:29:46 +0800 Subject: [PATCH] js: add another disadvantage about Ajax --- questions/javascript-questions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/questions/javascript-questions.md b/questions/javascript-questions.md index 34314f7c9..11d183819 100644 --- a/questions/javascript-questions.md +++ b/questions/javascript-questions.md @@ -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)