Improve GUI loading speed
-
Hello, from snbforum one guy wrote a tip for speed up webgui loading. This is him action:
Mar 11, 2023
#1
On the RT-AC68U model, the GUI loading speed is really, really slow, one reason is the CPU clock speed, and the other reason is the ROM read speed.So, a few days ago, I started trying to mount all webpages on a RAM DISK to improve loading speed, and sure enough it significantly improved GUI page loading speed.
You can do this:
mkdir -p /tmp/gui
cp -r /www /tmp/gui
mount --bind /tmp/gui/www /wwwThis will consume about 25MB of RAM, but it's worth it.
Create a init-start script that will automatically load the GUI to the RAM DISK every time you boot.
#!/bin/sh
if [ ! -d /tmp/gui ]; then
mkdir -p /tmp/gui
cp -r /www /tmp/gui
mount --bind /tmp/gui/www /www
fiIs it possible to make this on pfSesne using RAM?
If possible any changes in this script. This is script for linux based routers. -
No, not easily. Doing that would break every time anything get's updated.
You can enable RAM disks and that can help for very slow storage. But that isn't what you have. An NVMe SSD is many many times faster than the flash ROM on a SOHO router.
-
@stephenw10 Ok. thanks