在装载到同位素中之前如何过滤它们

| 我正在使用同位素的过滤功能。我写:
$(\'#stage\').isotope({
    filter:selector
});
在两个地方:
$(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.
问题是,每当单击链接的哈希或键入带有哈希的url时,浏览器将首先加载所有项目,然后再将其过滤掉。我想要的是:该页面仅加载已过滤的项目。     
已邀请:

要回复问题请先登录注册