Showing posts with label loading. Show all posts
Showing posts with label loading. Show all posts

Tuesday, May 1, 2012

Load 1000 images smartly


I have like 1000 images on the same page. Unfortunately, I can't use sprites on them, as the number of images increases continuously. So you can imagine it sends 1000 HTTP requests, so it takes lots of time for the images to load plus it's not good experience for the visitors.

Thursday, April 19, 2012

how to speed up website loading for opposite side of planet


I am currently running a small piece of PHP software which is being accessed by two groups of people, one group in China, the other in Ireland. The server is hosted in Ireland, and no doubt pages load between 0.3 and 0.8 seconds.

Sunday, April 8, 2012

jquery newsletter submit - loading message



i have a newsletter form i use on my site using ajax with jquery. i want to show to a user a wait message. what is the best option?





heres what i have so far:







<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>

<script type="text/javascript">

$(document).ready(function() {

$('#submit').click(function(e) {

$.ajax({

type: "POST",

url: '/save.php',

data: $('#form').serialize(),

cache: false,

success: function(result) {

// my code when success

}

});

});

});



</script>



<div id="newsletter">

<form id="form">

<label for="email">Your Email*:</label>

<input name="email" value="" type="text" id="email" size="30" maxlength="255" />

<span id="submit">Submit</span>

</form>

</div>







thanks



Source: Tips4all