Content Fetch via "GET"

Content Fetch via "GET"

Hi all,
I am using "get" method to fetch content. The code i am using is
$.get(url,function(data) {
$('#container').html(data);
//modify content1
//modify content2
//modify content3
});
After fetching the content, i need to modify the content 2-3 times before actually displaying it. The problem is the data gets displayed after each modfication which makes the page appear flickering. How can i stop the content from being displayed untill all the modification steps have been completed.