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.
精彩评论