The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 11-15-2019, 11:54 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Untraditional speed improvement achieved
05-31-2011, 06:17 PM
Post: #1
Untraditional speed improvement achieved
Hello,

Curiously I recently ran a page speed test of index page at http://www.background-checks-systems.com and noticed it responded with 34 http requests due to plenty of image lookups that were not in that page, but rather in other pages of site. A bit perplexed, I further researched as to see why.

It appears that when I merged all css files into one global file, many divisions contained background css images although not rendered by index page, but listed from other pages in the site -- it still created unnecessary http requests when robot crawled css file link.

I ran additional test by placing css directly into main page using <style type="text/css"> after getting rid of all unused styles from global css file and amazingly my first view http request went down to 14 from 34, file size decreased by more than half and load time down to 1.061s from 4.32s

Perhaps this method may work for your high-traffic pages (if not, at least your index page) whereby you can still call your css link for formatting while creating in-page head css file for background images.
Logistically it may seem like a bit of work, but keep in mind that is only for pages that contain different image backgrounds. If the same background is used more commonly throughout the site, by all means leave it in your main css file.

Anyone else experience this? or maybe I was just ignorant to this?

Joe
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Untraditional speed improvement achieved - joe524 - 05-31-2011 06:17 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)