Re: [Cppcms-users] Multiple class of render()
Brought to you by:
artyom-beilis
From: Christian G. <chr...@gm...> - 2012-06-21 08:36:38
|
2012/6/21 <ele...@ex...>: >> The main problem for my application is the response time if a page change >> should >> be done. So in order to improve this situation I only want/need to replace >> a div >> DOM object with the loaded content. In general an easy task, but this only >> works >> if the whole page gets loaded once. This saves loading of the big main >> js and css files >> every time (including parsing etc). > > Ok, but shouldn't the JS/CSS be cached on the client anyway? > It should, but dont ask me what chrome is doing in the end. > Have you considered using the built-in 2 level cache? The lowest target device for the software under development is an AMD Geode LX with 500 MHz and 512 MB RAM. The cppcms application and chrome are running on the same device. Without this "Ajax replacing of DOM-container" a page change takes 2-3 seconds, but it this ajax stuff it takes less then 1 second. The page change must be as fast as possible, else it is a problem for our user interaction. Also I need to support different screen resolutions (qvga and vga) - done via html body id and css. So I don't see that much sense in caching so dynamic pages, but may I be wrong :) -- Christian Gmeiner, MSc |