Use Load Progress Indicators
While adding progress indicators will not necessarily speed up your website’s load time, it will at least help to mollify impatient browsers by letting them know the page is loading and is not frozen in Internet limbo. If there’s anything our modern society likes as much as speed, it’s information!
Additionally, putting stylesheets at the top of the page will give people an indicator that the page is loading and while also making it appear as if the page is loading faster. Since the stylesheet is generally quick to appear, it serves as a progress indicator while also displaying some of the site’s content as fast as possible. This appeals to people’s penchant for both speed AND information!
Other Steps
Specifying the DOCTYPE can also help a website load faster because your markup and CSS won’t validate without the DOCTYPE. If you have the proper DOCTYPE specified, your page will generally load faster.
Make Images Efficient
Image files often slow down a site. Optimize your images by choosing the “save for web” option in your editing software and compress .jpg and .gif files. Specify image size by entering the height and width. This way, the page will know how much space the image will take and can leave that space blank while loading the text around it.
Code Smart
CSS formatting can effectively tweak your design to eliminate the need for an excessive number of images. Using CSS as a basis for layout can help clean up your code, reducing page loading time and giving you the additional benefit of potentially increasing SEO. Streamlining CSS through a site like CleanCSS will also help optimize the load time by getting rid of dead space and unnecessarily repeated coding.
Reduce HTTP Requests
Reducing the number of HTTP requests is another smart way to reduce website load time. You can reduce the number of components the site needs to load by using CSS formatting to reduce the number of images. You can also combine all the scripts into a single script, which will reduce the number of HTTP requests the site will have to send. This will cut down on the number of round trips to the server.
Reduce Cookies
Cookies have to transmit each time a person browsing the website makes a request. By reducing the size and number of cookies on the page, there is less to transmit with each request. This will speed up the time it takes for a page to load.
(Maybe this will help? I am taking a coding class for high school, and we were trying to find ways to avoid lag, and these were the best suggestions…)