$(document).ready() for certain situations?

$(document).ready() for certain situations?

I have a site where I need to send outbound clicks to open in a new window (yes, I generally understand this is not the recommended behavior.) The way I have it set up now is using $(document).ready() because if I put it in pageinit it binds multiple times as you're navigating pages in the site.

  1. $(document).ready(function(){
  2.       $('.block').on('tap', 'a[data-outbound=true]', function(event){
  3.       window.open(this.href,'_blank');
  4.       return false;
  5.       })

Is there any reason this is a bad idea that I'm missing. It seems to work fine.