I use this javascript to load a webpage that is scrolled to the area I need into an . But whenever the given iframe loads, the viewport instantly
Working with the first answer I came up with this:
http://jsfiddle.net/UZZ4c/1/
As you can see it is just hiding and showing the iframe while it's loading and rescrolling before the show.
My first thought is that you shouldn't need to scroll. The iframe elements are not visible upon the time they are loaded and the browser shouldn't scroll to the anchor http://jsfiddle.net/UZZ4c/2/ however I did not test this theory so I will leave that upto you.
I do suggest you put a loader in place of the iframe while it's hidden.
#asContainer { display: none; }
$(document).ready(function() {
$('#asContainer').attr("src", "//audio-surf.com/mypage.php?u=DJDavid98#favorites_container").on('load', function() {
$(this).show();
});
});