jQuery has a native .position()
function right out of the box which gets positioning values of an element relative to its location on the page.
jQuery UI extends that same function to allow modification of positioning of elements.
How do I check if the jQuery UI version of .position()
is loaded in a page?
Sadly, it isn't just a matter of checking whether jQuery UI is loaded on a page or not, since the .position()
plugin extension is not part of the jQuery UI Core libraries, which means someone somewhere will have a jQuery UI framework loaded without the .position()
plugin, and the linked jQuery UI check will fail.