Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8232627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:53:47+00:00 2026-06-07T17:53:47+00:00

Isotope can take a while to return stuff when asked to filter. So, I’d

  • 0

Isotope can take a while to return stuff when asked to filter.

So, I’d like to use a loading.gif while that’s happening. I suspect some jQuery would do the trick but don’t know where or what it should look like to do that.

The Isotope is straightforward:

var $container = $('#stream');

$container.imagesLoaded( function(){
  $container.isotope({
 itemSelector: '.stream-class',
 transformsEnabled: false,
  });  
});

Then, I use simple buttons like those in the docs to trigger the filter:

$('#filters a').click(function(){
  var selector = $(this).attr('data-filter');
  $container.isotope({ filter: selector });
  return false;
});

Thanks in advance for the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:53:49+00:00Added an answer on June 7, 2026 at 5:53 pm

    This works for me:

    $('#filters a').click(function() {
        var selector = $(this).attr('data-filter');
        var lastClicked = $("#filtersLoad2").text();
    
    
    if(lastClicked == selector) {
    
       return false;    
    
    } 
    
        $("#filtersLoad").show(); //  Show loading gif in div
        $container.isotope({
            filter: selector
        }, function(){
            $("#filtersLoad").hide();
            $("#filtersLoad2").text(selector); // Store last button clicked
        });
    
        return false;
    });
    

    Hope this helps someone else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a jQuery plugin that can do a centered clustered layout like this
I am using Metafizzy's Isotope plugin and have it set up to filter using
Isotope provides two places where you can supply callback functions: container.isotope({ itemSelector: itemSelector, layoutMode:
How can I override to automatic left-alignment in the beautiful-beautiful jQuery Isotope ( Source
is there any other jQuery Isotope plugin implementor that knows, if it is possible
I have been struggling with Isotope for a while now. After a few different
Please don't suggest plugins like Masonry or Isotope, I'd like to do it without
Im struggling to build a proper project filter with jquery isotope. I only want
I'm already using scrollTo, but that can be scrapped or replaced by something else
I'm using the Isotope JS plugin (v2.0.1) from Metafizzy to filter a library of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.