Calling a plugin before document loads
I have a very long table (more than 1000 rows) that takes a long time to load (up to 5 seconds). In turn, the rows have an anchor showing a dynamic tooltip using the qTip plugin.
Problem is that users need to wait for the document to load in order to see the tooltips. That is:
$(function() {
$('a.anchor_in_row').qtip(...);
});
I am afraid that paging the table is not an option. Is there anyway I could begin showing the tooltips before the entire document is loaded? Thank you.
Try jQuery live events, or event delegation and just have a single handler for the table.
精彩评论