I am working on a very simple templating system for my website. It consists of just loading the header and footer from two files and inserting them into each one, with the jQuery load() function. The XMLHttpRequest that this function relies on is now depreciated, so I was wondering how the major static site generators add HTML content from a file into a specific web page. Could you explain to me the techniques they use?
Asked
Active
Viewed 69 times
0
-
4XMLHttpRequest deprecated? Since when? The whole modern web is built on this function. – GolezTrol Oct 21 '16 at 05:58
-
@GolezTrol It says `Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.` – Oct 21 '16 at 06:33
-
see here http://stackoverflow.com/questions/27736186/jquery-has-deprecated-synchronous-xmlhttprequest – masif Oct 21 '16 at 06:40
-
1@DanielHarrin You should learn to read the whole sentence... `**Synchronous** XMLHttpRequest` + `Developers must not pass false for the async argument when entry settings object's global object is a Window object.` – Weedoze Oct 21 '16 at 06:45