best practice

Results 1 to 2 of 2

Thread: best practice

  1. #1
    PJ Guest

    Default best practice

    I have lots of pages all over a site that have slowly grown and grown as I continually add more and more JavaScript validation to forms. Before I knew it, I had tons of pages whose first 500-1000 lines are just JavaScript. <BR><BR>I have seen examples before where a script is included from another location. Is it common practice to include JavaScripts in this manner? Should I adopt this and make it a habit to restrict the JavaScript on web pages to a simple include tag?<BR><BR>Thanks for any advice.<BR><BR>PJ

  2. #2
    Join Date
    Dec 1969

    Default RE: best practice

    if you have all of your javascripts in one place then to update them you only have to do it once not on every page, the down side is that you might have to download unneccessary javascript sometimes, however a js include page should cache on the client

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts