L
L
lerneree2018-05-14 20:13:36
JavaScript
lerneree, 2018-05-14 20:13:36

How to get page source code after ajax?

hello! for example, facebook loads spmsok of friends as it scrolls by performing ajax.
if you save the page or view its source code, then there will be no loaded friends; the page will be
shown before ajax is performed. how to get page source code after ajax?
1 Is it possible to get the source code of the page using the browser?
2 there is an option to embed javascript into the page.
- get the source code of the page using javascript?
- maybe somehow "intercept" the information after the ajax request?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-05-14
@demon416nds

in the inspector you can
select the document root () and right-click edit as html

T
ThunderCat, 2018-05-14
@ThunderCat

- maybe somehow "intercept" the information after the ajax request?

The inspector on the network tab can show you everything that was being transmitted from and to your browser. The XHR filter will show what is passed through ajax requests.
Yes, as Dmitry already wrote - we look at the Elements tab in the inspector. It will be enough to copy the entire HTML tag.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question