How to copy the url from href to rel
<p>Iam using swf address and wanted to copy the url from href to rel. I have used link.attr('rel', link.attr('href')), but it make the browser too slow. is it possible to have any other method to handle it in jquery?</p>

<p>Here is the code</p>

<pre><code>var size = 100;
    //console.time('profile 1');
    for (var i=0; i&lt;arry_links.length; i+=size) {
        var links = arry_links.slice(i,i+size);
        // do something with smaller array
            $(links).each(function(i, obj){
            var link = $(obj);
            if(!$(obj).hasClass('dontAjaxify')){
               link.attr('rel', link.attr('href'));
                var rellnk = link.attr('rel');
                if(flag=='ajaxified') {
                    if(/http/.test(rellnk)){
                        var relurl;
                        relurl=rellnk.replace((window.location.protocol + "//"+ window.location.hostname),'')
                        link.attr('rel', relurl);;
                    }
                }
                link.unbind('click.ajaxify').bind('click.ajaxify', function(e){}
</code></pre>
