NGPriest: Site Rewrite

Ξ September 23rd, 2009 | → 0 Comments | ∇ Author: NGPriest |

Every now and then, i like to rewrite the site, from the core to all the text, till the images, i like to compress them to allow you to load the site faster

xxx Requests (xxxKB) taking xx.xxs to load
6 HTML Requests (77KB) taking 14.19s to load
5 CSS Requests (8KB) taking 17.52s to load
14 JS Requests (42KB) taking 16.82ms to load
XHR not checked
77 Image Requests (480KB) taking 16.42s to load
2 Flash Requests (32KB) taking 3.15s to load

Okay, that’s done

Then this is the ranking system we use
And yes, i did modify quite alot, let’s see, added more stuff
HTTP – I decided to use more off-site content
gzip – I was going to use it, but it proved difficult to work with in the past
JavaScript can’t be moved without destroying the layout
DNS – I only used 4 servers, guess they wanted 1-2?
DOM – Forgot this, learnt it several years ago

Grade D -> Grade C
Overall performance score 62 -> 73

C Make fewer HTTP requests -> F Make fewer HTTP requests
A Compress components with gzip -> F Compress components with gzip
A Put CSS at top -> A Put CSS at top
B Put JavaScript at bottom -> C Put JavaScript at bottom
A Avoid CSS expressions -> A Avoid CSS expressions
A Reduce DNS lookups -> C Reduce DNS lookups
A Minify JavaScript and CSS -> A Minify JavaScript and CSS
A Avoid URL redirects -> A Avoid URL redirects
A Remove duplicate JavaScript and CSS -> A Remove duplicate JavaScript and CSS
B Reduce the number of DOM elements -> C Reduce the number of DOM elements
A Avoid HTTP 404 (Not Found) error -> A Avoid HTTP 404 (Not Found) error
A Avoid AlphaImageLoader filter -> A Avoid AlphaImageLoader filter
A Do not scale images in HTML -> A Do not scale images in HTML
A Make favicon small and cacheable -> A Make favicon small and cacheable

doc (1) 70.0K -> doc (1) 69.8K
js (8) 27.3K -> js (15) 59.9K
css (4) 7.4K -> css (5) 7.5K
iframe (0) 0.0K -> iframe (3) 0.0K
cssimage (2) 70.4K -> cssimage (2) 70.4K
image (49) 404.9K -> image (54) 411.9K
favicon (1) 2.6K -> favicon (1) 2.6K

HTTP Requests – 65 -> 72
Total Weight – 582.8K -> 316.4K
1 HTML/Text 70.0K -> 1 HTML/Text 69.8K
8 JavaScript File 27.3K -> 10 JavaScript File 5.7K
4 Stylesheet File 7.4K -> 4 Stylesheet File 1.8K
0 IFrame 0.00K -> 3 IFrame 0.02K 2 CSS Image 70.4K -> 2 CSS Image 0.0K
49 Image 404.9K -> 51 Image 239.0K
1 Favicon 2.6K -> 1 Favicon 0.0K

We reduced the document size
We added 7 more js scripts
We added 1 css
We added 3 iframes
And 5 more images (find them if you can)

We reduced the size of all 15 js, css and re-worked on the image scripts



Name (required)

Email (required)


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Share your wisdom


    Welcome to

    NGPriest's Blog

    There are 6,864 posts and 303 comments so far. Feel invited to browse the archives, read the about or comment on the latest post.


    • BananaStatio is 23/M/KL, KL, Malaysia
    • ChambyT is 1x/F/Sungai Bakap, Penang, Malaysia
    • chingyi1807 is 1x/F/Malaysia
    • CopyCatty is 1x/M/Hong Kong
    • crazymango is 15/F/Malaysia
    • Eliteratty is ??/M/???
    • HolySprings is 18/M/Sungai Bakap, Penang, Malaysia
    • jaigralia is unknown...
    • Jykur0 is 14/M/Indonesia
    • MakoJr is 1x/M/Singapore
    • NGPriest is 19/M/Brisbane, QLD, Australia
    • PoringCat098 is 1x/F/Malaysia
    • Saphira is 15/F/George Town, Penang, Malaysia
    • shiningthrust is 13/M/Singapore
      shiningthrust is Single
    • sianzxd is 18/M/George Town, Penang, Malaysia
    • Swifty13 is 1x/M/United Kingdom
    • WingzOfChaos is 15/M/Singapore

Random stuff!

  • Loved by Some,
    Hated by Many,
    Envied by Most,
    Yet Wanted by Plenty
  • 10% luck
    20% skill
    15% concentrated power of will
    5% pleasure
    50% pain
    100% reason to remember the name!
  • I write your name in my breath on the window, Sit and watch as it fades away
  • Hi honey.
    Guess what I did at work today?
    I wore a bomb.
    A nuclear bomb in a field of flowers.
    I could get lucky.
    Tomorrow I could have a bigger bomb.
    I could kill more people.
    Maybe they'll be innocent people.
    Children, maybe.
  • "You are like a plague, John Crichton,
    and you have ruined my life . . .
    and yet
    I just keep coming back."
  • I'll watch the night turn light blue
    But it's not the same without you
    Because it takes two to whisper quietly
    The silence isn't so bad
    Till I look at my hands and feel sad
    Cause the spaces between my fingers
    Are right where yours fit perfectly