I have implemented visualforce page to display 500 residential(home information for rental)information with 500 images.
Currently this page is loading with 500 images very fast in sandbox org but not in production org. Its taking too long to load the page in production.
function drawList() {
for (r = 0; r < pageList.length; r++) {
document.getElementById("PropCanvas").innerHTML += '<div class="row"><div class="col-md-6 col-sm-12 col-lg-6 prop-img-list" style="padding:15px 0px"><image onclick="openPropertyDetail(\''+pageList[r].id+'\',\'\',\''+pageList[r].type+'\',\''+pageList[r].status+'\');" src="'+imgTxt+'" width="100%" style="height:270px !important;" /></div><div style="" class="col-md-6 col-sm-12 col-lg-6 contentfield"><h1 onclick="openPropertyDetail(\''+pageList[r].id+'\',\'\',\''+pageList[r].type+'\',\''+pageList[r].status+'\');" class="black-bold">'+pageList[r].fulladdress+'</h1><span onclick="openPropertyDetail(\''+pageList[r].id+'\',\'\',\''+pageList[r].type+'\',\''+pageList[r].status+'\');" class="small-light">'+bedTxt+bathTxt+sfTxt+pageList[r].builtin.toLowerCase()+'</span> <h2 onclick="openPropertyDetail(\''+pageList[r].id+'\',\'\',\''+pageList[r].type+'\',\''+pageList[r].status+'\');" class="propty-status '+pageList[r].status+'">Status: '+pageList[r].status+' '+rentTxt+'</h2><div id="rateYo"></div><div class="btnfalse"></div><div class="btnfalse"></div>'+RatingAvg+' <span class="countval"><span>▼</span><span style="font-size:15px;Color:Blue;"> '+pageList[r].Reviewcount+'</span></span><br/><div class="color-btn" style="height: 45px; margin:5px 0px;">'+
'<span class="colorspan"><a href="#" onclick="follow(\''+pageList[r].id+'\');" class="lgtrose-btn">Follow</a> <a href="#" onclick="Findsimilar(\''+pageList[r].id+'\');" class="lgtyellow-btn">Find Similar</a> <a href="#" onclick="Review(\''+pageList[r].id+'\');" class="yellow-btn">Review</a><br/><br/>'+requestshowTxt+ApplyTxt+
'<nav id="menu-social" class="social-icons"><ul id="menu-social-items" class="social-menu" style="padding-left:0px;">'+
'<li id="menu-item-2040" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-2040"><a class="ml" href="mailto:?subject='+pageList[r].shortaddress+' on rental.community&body='+pageList[r].bed+' Bed, '+pageList[r].bath+' Bath Appartment for $'+pageList[r].rent+'/month : https://www.rental.community/ResidentialDetail?id='+pageList[r].id+'%0D%0AIt\'\s located at:%0D%0A'+pageList[r].shortaddress+'%0D%0A'+pageList[r].fulladdress+'" ></a></li>'+
'<li id="menu-item-2036" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-2036"><a class="fb" href="http://www.facebook.com/" onclick="popUp=window.open(\'\http://www.facebook.com/sharer.php?u=https://www.rental.community/ResidentialDetail?id='+pageList[r].id+'&media='+pageList[r].locationimage+'&title='+pageList[r].fulladdress+'&description='+pageList[r].Description+'\'\,\'\popupwindow\'\, \'\scrollbars=yes,width=800,height=400\'\); popUp.focus(); return false"></a></li>'+
'<li id="menu-item-2037" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-2037"><a class="tw" href="https://twitter.com/" onclick="popUp=window.open(\'\http://twitter.com/intent/tweet?text=I found this '+pageList[r].bed+' Bed, '+pageList[r].bath+' Bath in '+pageList[r].shortaddress+'on @rental.community https://www.rental.community/ResidentialDetail?id='+pageList[r].id+' \'\,\'\popupwindow\'\, \'\scrollbars=yes,width=800,height=400\'\); popUp.focus(); return false"></a></li>'+
'<li id="menu-item-2038" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-2038"><a class="pi" data-pin-do="buttonPin" rel="nofollow" href="http://www.pinterest.com/" onclick="popUp=window.open(\'\http://pinterest.com/pin/create/button/?media='+pageList[r].locationimage+'&url=https://www.rental.community/ResidentialDetail?id='+pageList[r].id+'&description=I found this '+pageList[r].bed+' Bed, '+pageList[r].bath+' Bath in '+pageList[r].shortaddress+' on @rental.community https://www.rental.community/ResidentialDetail?id='+pageList[r].id+' \'\,\'\popupwindow\'\,\'\scrollbars=yes,width=800,height=400\'\); popUp.focus(); return false" ></a></li>'+
'<u1></nav></span></div></div></div>';
}
}
In the above code snippet, "pageList" is the array of 500 data with 500 images and these data getting from apex controller using remoteaction function.
I already verified page load speed with cache(true/false) but there is no luck.
Can anyone help me, how can resolve this page load issue in production.