开发者

Process JavaScript on server

I use third-party JavaScript grid control. The matter is, it renders completely on client side and takes much time for this (creating DOM and corresponding JS objects). It can be normal for PC, but completely bad for mobile browsers like iPad's Safari (for about 1 minute rende开发者_开发百科ring time). I apply many different optimization tricks, but the main problem is grid's rendering time.

So, I wonder, is there any ability to perform rendering of HTML page on server side and return to the client completed page with JS objects?

By another words, I need to launch web page on server side, get the resulted DOM and JS objects and return this to client, like it was performed on client browser.


So, I wonder, is there any ability to perform rendering of HTML page on server side and return to the client completed page with JS objects?

No. You can produce either HTML or JavaScript on server side, but the actual execution of the JavaScript and rendering of the control is not a task you can delegate to the server.

I don't know what is causing the actual performance issue, but you may want to look into paginating your results on server side so the client needs to render only one pageful at a time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜