Corion,

I do agree with all your suggestions. But, here is what exactly I'm doing

~ I've a 2 dropdown list where data in second list box is to be displa +yed without actually loading the page. ~ To achieve that task, I've created my JS file with data before hand +and loading during onChange() event ~ My JS file contains a simple function along with data ( I'll mention + in below step what exactly is the data) which returns Options based +on the selection of first dropdown list ~ Data in JS is actually Hash of Arrays which piled up aroud 7MB

How should I proceed. Is there any way I can minimize any of the steps so that my JS file size cannot pile up


In reply to Re^2: Load JS files faster inside CGI script by kalyanrajsista
in thread Load JS files faster inside CGI script by kalyanrajsista

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.