I've been reading some things about PJAX , but it's a bit confusing for its framework-independent operation, I've seen articles but all focused on YUI or plugins for jQuery, .
If I understand the PJAX it is the DOM interaction (via javascript) with the backend through XmlHttpRequest
.
What I would like to understand:
- Should it be used with
pushState
or is it just a type of implementation? - Is it used to load HTML content (did the plugins I tested load the data into a pointed element)?
- I know I should have to send header through
setrequestheader
, but I saw two different headers being used, then how to "detect" a PJAX call? (I know that in real it can not differentiate a requestXmlHttpRequest
from other types of request)