开发者

How to filter item before loading them in isotope

I'm using isotope's filter function. I wrote:

$('#stage').isotope({
    filter:selector
});

in two places:

$(window).load(function() --> so
    that when users type url with
    hash(#), they can see the content
    items which is filtered out already.

$('.filters
    a').click(function(){filter:selector}); --> when users click particular link.

The problem is that whenever one clicks link which hash or type the url with hash, the browser will load all of the items first and later on filtering it out. What I want is: The page load only f开发者_运维问答iltered items.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜