How to show loader image before popup screen of color box module in drupal 7 I used color-box module in my current drupal project for showing user details in popup after click user image. It will take some time to show details so I want to show loader images before this. I tried to override this using drupal.behaviors but cannot get proper output. If any idea how to handle this situation then please help me for same.

Thank you.
Hope this will help you,


You can use Colorbox Callbacks


onOpen : Callback that fires right before Colorbox begins to open
onComplete : Callback that fires right after loaded content is displayed


jQuery.colorbox({ 
........
  onOpen:function(){
    //show loader
  }
  onComplete:function(){ 
   //hide loader
  }
});