Friday, July 31, 2015

My Life!!!

I am a Programer
I am a Programmer
I write code

Thursday, July 23, 2015

First Byte Time “FBT” www.webpagetest.org

First and foremost I hope this helps some others, I find it very important to share knowledge that will help others to improve their Web sites on the Internet.

I have been scratching my head trying to figure out why I was receiving an “F” rating on www.webpagetest.org for First Byte Time “FBT”.  After some research and additional testing on www.shoeshow.com I have come to the following conclusions:

Reasons why First Byte Time takes so long
  1. Number of requests/responses needed to build the page
  2. Does the page have a lot of Dynamic content on the page (aka how many database calls are going back and forth for data)
  3. Size of the overall page
  4. Size of CPU and MEMORY of the HOSTING SERVER. The more powerful the SERVER the faster processing you will receive. 
  5. Do you have a VM Server or a Dedicated Server

My test sample was for the home page of www.shoeshow.com I got an “F” for FBT every time, that is because this page has a lot of dynamic content and unless I dissect and rebuild this page it will continue to receive an “F” although the overall page is loading in under 2 sec.  However, If I go to https://www.shoeshow.com/reward-points it gets a “B” because there is very little dynamic or programming on that page and not many images.  Finally when I run our https://www.shoeshow.com/404.aspx we get an “A” because there is no images and no coding.


My overall opinion is that FBT is important, but can also be a false/positive.  

And Finally --- Utilize a CDN if you want a fast responsive Web site.  I cannot believe the overall performance of using a CDN ---  Yes I will plug https://www.akamai.com/ 

Wednesday, July 15, 2015

Remove Trailing Comma from List of Strings

myList.RemoveAt(myList.Count - 1);

Boot Strap Search Box with glyphicon glypicon-search

Adding to Code Library OPEN SOURCE

<div class="row">
    <div class="container">
        <div class="col-md-offset-3 col-md-6 col-md-offset-3">
                <div class="input-group">
                  <span class="input-group-btn">
                      <input type="text" id="txtGlobalSearch" class="form-control" placeholder="Search Site..." onkeypress="return submitglobal(this, event);"/>
                      <button type="button" class="btn btn-default" runat="server" onclick="GlobalSearch(); return false;"><span class="glyphicon glyphicon-search"></span></button>
                  </span>
                </div><!-- /input-group -->
          </div><!-- /.col-md-12 -->
        </div><!-- Container -->
</div><!-- Row -->

Monday, July 06, 2015

Caching --- How to ensure you optimize

IIS, Optimising Performance, 304 status codes, and one stupid browser…

How to prevent 304 responses and be sure to know that Chrome acts different with DEV tools --- Great article by Terry Brown... http://idisposable.co.uk/2011/03/iis-optimising-performance-304-status-codes-and-one-stupid-browser/#comment-2119464518 


Note when use the Chrome Developer tools looks at two columns ---