thybag / PJAX-Standalone

A standalone implementation of Pushstate AJAX, for non-jquery webpages.
203 stars 42 forks source link

Option to preload upon mouseover of link #2

Open aaronshaf opened 11 years ago

jchulce commented 9 years ago

Be careful how this is implemented: what happens when a "delete my account" or similar link is moused over? While a GET request is always supposed to be "safe" and never change anything on the sever according to the HTTP standard, that appears to have been ignored in reality.

I would suggest only prefetching links that are explicitly set with a prefetch attribute, such as the somewhat standardized setup already in use by most browsers. While this would require extra work to utilize, it would be 100% safe.