8
I’ve been reading about PJAX, but it is a little confusing its operation independent of frameworks, I saw articles but all turned to YUI or plugins for jQuery, really it was not very clear its implementation.
If I understand correctly PJAX is the interaction of the DOM (through javascript) with the back-end through the XmlHttpRequest
.
What I’d like to understand:
- It should be used with
pushState
or this is just a kind of implementation? - It is used to load HTML content (the plugins I tested loaded the data into a pointed element)?
- I know I must have to send header through the
setrequestheader
, but I saw two different headers being used, so how to "detect" a PJAX call? (I know that in real there is no way to differentiate a requestXmlHttpRequest
of other types of requisition)