pageAccelerator
pageAccelerator copied to clipboard
About blacklisting
In general terms this library looks like instantclick but more lightweight, so that's good!
I thin that blacklisting links can be improved:
-
data-no-pageAccelerator
instead ofdata-pageAccelerator="false"
. Or something similar. Less characters, more semantic. - Add ability to blacklisting a group of elements. For example, in instantclick:
To blacklist all links in a parent element, add data-no-instant to that element.
Being able to disable pageAccelerator via something passed to the function would be fantastic as well. I'm trying to figure out how to exclude the WordPress admin bar from being accelerated, and I think I may just need to write a walker or something.