SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot websalacarta's Avatar
    Join Date
    May 2003
    Location
    Spain
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript optimizer

    Hi

    Im using one grid in my aplication

    it is very slow when the grid draws the information, the grid is very big.

    I think the problem is that javascript is slow drawing things

    do you know any free product to optimizer javascript?

    thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2005
    Location
    London, UK
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've certainly never heard of anything like that. You'd have to dig into the web browser's internal rendering and parsing and execution to speed things up.

    It might be interesting to see if there are tools that can analys your javascript code to see if you're doing something badly like using up too much memory or too many loops.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Javascript is interpreted so there is no optimization of loops done by the browser before the loop is run. Often loops run slower than needed because they check the length of an array directly in the termination test. Any fields in the loop that contain a dot in the name will run much slower than if you can reference a field that doesn't contain a dot so try assigning fields across to remove as many dots from within the loop and loop termination test as possible.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

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