Page 1 of 1
S.L.P. Raspbian old image optimization
Posted: Wed Mar 17, 2021 6:21 pm
by zoldaten
I noticed that when page loads tons of time taken by loading images ) :
- 2021-03-17_20h42_39.jpg (8.12 KiB) Viewed 8550 times
So to speed up i just pass them through optimisator and result became:
- 2021-03-17_21h09_25.jpg (6.68 KiB) Viewed 8550 times
So to do so u just need to upload optimized images and replace old ones. It can be tricky as there`s no VNC.
I recommend ftp. For example -
https://www.xlightftpd.com/
After that u can upload them this way:
- 2021-03-17_21h18_47.jpg (15.43 KiB) Viewed 8550 times
New images -
Next i`ll look after
js may be it can be optimized too.
Re: S.L.P. Raspbian old image optimization
Posted: Thu Mar 18, 2021 12:30 pm
by zoldaten
Additional optimisation.
Web file-manager.
- 2021-03-18_15h16_52.png (14.09 KiB) Viewed 8544 times
Web-page time load before:
- 2021-03-18_11h27_46.png (17.54 KiB) Viewed 8544 times
After optimisation:
- 2021-03-18_15h19_35.png (13.14 KiB) Viewed 8544 times
What have done ?
All external links of js and css put to filesystem (most of all).
To do that you need put updated index.php to /var/www/html/files
And js and css after unpack to /var/www/html/files/js
Files -
- js.rar
- (239.72 KiB) Downloaded 1848 times
and
Re: S.L.P. Raspbian old image optimization
Posted: Thu Mar 18, 2021 1:58 pm
by zoldaten
i`ve added to the web-page shutdown button.
It looks like this -
- 2021-03-18_16h51_11.png (41.25 KiB) Viewed 8542 times
On push it just shutdown stereopi
To do the same put to /var/www/html updated index.php -
and to /var/www/html/imgs -
(after unpack ofcause).
Make shutdown.php at the same dir where index.php is and put in it 1 string:
Code: Select all
<?php system('sudo /sbin/shutdown -h now'); ?>
Make shutdown.php executable: