ajax - jQuery. Different performance on local and through the internet -


i use jquery 1.4 ajax, mvc on server side. works fast on local computer. tables data compiled , sent html documents (i’m testing system large tables, on 100kb). when download same page through internet, works 5-10 times slower or pending.

i checked forefox debugger. ajax sent query , received data (i can see received response correct data). inserts data in dom slowly, following instruction works particularly slowly: $("#oldtable").replacewith( newtable ); , empty() works extremely in ie6,8 (3 sec on local machine , 1 min through internet). delete data dom 1 object , insert whole table. there no errors in inserted html code.

please recommend how make work faster? should use library, such prototype. can’t understand following: javascript executed on client’s side, data uploaded. computer same. why execution time differ much? thank you, igor

many issues here:

1) fast inserting , emptying data, jquery slower straight javascript functions .innerhtml. though these functions not part of standard, fast performance makes them attractive.

2) jquery javascript, runs on client. unless .js files large, shouldn't make difference if download them localhost or server on internet.

3) ajax functions requests server. so, makes big difference if downloading large amounts of data localhost vs. server.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -