Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Builder.com:
JavaScript Tips to Speed Things Up
May 03, 2004 @ 12:37:55

In a new article over on Builder.com this morning, there are a few little tips that claim to help speed up your site through the flexibility of Javascripting.

JavaScript tips to accelerate a slow Web app aims to help you speed up your website with four simple tips:

  • Cache your JavaScript if it is used by multiple pages
  • Accumulate HTML in string variables
  • Do large array lookups as string searches
  • Avoid inefficient commands in recursive code
Most of these tips are based on the idea that you're mainly just working with HTML and Javascript, but there are a few items that could make things a little smoother, even with dynamic code and output.
tagged:

Link:


Trending Topics: