S
S
Stepgor2018-12-15 23:05:22
AJAX
Stepgor, 2018-12-15 23:05:22

How to make ajax page loading of a website?

What are the ways to implement ajax loading of pages on the site? like VK and YouTube, if possible with an example

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tempick, 2018-12-15
@tempick

use HTML History API

A
Ao, 2018-12-16
@darknefrit

There are plenty of examples on the Internet, from the browser you send an ajax request to the server, for example, via fetch? the browser returns your html, you paste it where you need it on the page. How you implement it on the server is another question. It is also worth the effort and googling. The mozilla site has an example of ajax navigation with this implementation
One
Two

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question