开发者

Calling a plugin before document loads

开发者_Go百科

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜