 <p>I update the links in the after function</p> <pre><code>jQuery(document).ready(function($){ var loadButton = $('#load-more'); var feed = new Instafeed({ get: 'user', userId: xxx, accessToken: 'xxxx', limit:160, after: function() { $("#instafeed a").attr("target","_blank"); // disable button if no more results to load if (!this.hasNext()) { loadButton.attr('disabled', 'disabled'); } } }); $('#load-more').on('click', function() { feed.next(); }); feed.run(); }); </code></pre>