rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: Chris Harris on June 10, 2016, 01:36:37 AM
-
Hi
I am using HFS 2.3h build 296 on a Windows 10 machine. I have one real folder with many file/folders. The top folder has about 990 files and there are about 20,000 files in folders/I am using the mobile-light template. When accessing the server via a web address on the same machine, the response is reasonably fast (say 4 seconds). On some other devices is can be very slow. On a smartphone (Motorola Razr M) it can take 4.5 minutes to paginate and display the final screen. The server CPU stays at about 20% the whole time.
What can I do to speed up the process?
Is the pagination done on the client browser, not on the server? If so can the pagination be done on the server or can I turn off pagination?
Any other suggestions welcome.
Chris
-
using the mobile-light template....
what happens if you try it with the default template.. i'm sure it the template that causing this...
and it probably a template thing for "pagination"...
i'm not familar with that template nor how its code works...
https://dzone.com/articles/pagination-server-side-or-clie
-
I tested with the default template and the program was MUCH faster for the smart phone/small screen.
When using mobile-light template (hfs.diff.tpl), the time to paginate and display the final screen was many times longer ( 250 secs vs 19 secs for default).
I do like the layout of mobile-light template on all screens and the ability to turn on and off the menu block.
What can be done to speed up this template?
Regards
Chris
-
If you use images, but no thumbnails, you could try to replace "thumb/%item-url%" with "%item-icon%" or "" (line 4)
update: try to load the script earlier
add [box panel] before the script and the content of box panel of the hfs.tpl after the script block
-
I tried replacing "thumb/%item-url%" with "%item-icon%" or "" (line 4) and I found no difference.
Any other suggestions?
Chris
-
It's seems this was discussed over here (http://www.rejetto.com/forum/programmers-corner/pagination-macro/) in 2010, and they were describing the same "lag" problem. As far I know, they didn't found a solution to this.
-
where can i see this template?
-
the mobil-light template is here http://www.rejetto.com/forum/html-templates/file-upload-with-drag-and-drop/msg1061004/#msg1061004 and the thread http://www.rejetto.com/forum/html-templates/responsive-small-screen-template/
-
ugh, i tried to look at the source but it's hard to read, sorry
-
the template without pictureviewer
http://www.rejetto.com/forum/html-templates/responsive-small-screen-template/msg1061428/#msg1061428
-
i understand there's no problem anymore, as i found the new version of the template to be much faster.
I should consider making a new mobile-friendly default template.