How can I have a while(www is loading) loop?

I have a

var googlePage : WWW = WWW("http://www.google.com/");

and the code to wait until is loaded and then do stuff

yield googlePage;
Debug.Log("Done!");

I have a cube (It’s a circular loading bar), and I want to use a while loop to change the texture (frame) every 0.5 seconds. Something like

var frames : Texture2D[]

function LoadGoogle(){
    var googlePage : WWW = WWW("http://www.google.com/");

    while(yield googlePage){
        //From http://wiki.unity3d.com/index.php?title=Texture_swap_animator
        var index : int = Time.time * 0.5;  //0.5 are the frames per second
        index = index % frames.Length;
        renderer.material.mainTexture = frames[index];
    }

    Debug.Log("Done!");
}

while (!googlePage.isDone) {
// stuff
yield;
}