monks,
I'm in the middle of creating a new personal web site for myself (that sounds a bit redundant). One thing I am focusing on this time is speed. Particualry, the amount of time it takes for the page to load. The most server taxing process I am running is a frame that loads a guestbook type of application. I have decided to have a random header image on the page, my question is: 1) Would the page load faster if i did a some of the scripting on the client's side in JavaScript, as opposed to perl on the server side? and if so, 2) are there indicators that I can look for to know when I should begin doing more of the work on the browser and less on the server?

here are some things I'm taking into account:
  1. the script is small and it probably makes no diff where it's run
  2. some people may not have JavaScript
  3. even if the browser can do it faster, that probably wouldn't be the case for everyone
I'd like to hear your opinions and experience.
-Silent11

In reply to speed : client or server side by silent11

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.