A static, JSless, touch-friendly Lemmy frontend built for legacy web clients and maximum performance
A static, JSless, touch-friendly Lemmy frontend built for legacy web clients and maximum performance
This project is not intended for official use, but rather as a proof-of-concept for pre-rendering Lemmy. Eventually it will transition into a microservice that is ran alongside Lemmy, for example, under lite.lemmy.com or lemmy.com/lite. Ideally it will run on the same machine removing any extra latency in API calls.
cd lemmy-lite
pigz -rk11f static
cp -rf static /etc/nginx/lemmy-lite
cp -f lemmy-lite.conf /etc/nginx/sites-enabled/
systemctl start nginx
cargo run --release
Android | Desktop | iOS |
---|---|---|
Quirks
word-spacing
is broken on iOS and NetSurfkillall lemmy-lite
git pull
rm static/*.gz
pigz -rk11f static
for i in static/*gz; do
[ -f "$i" ] || break
j="${i%.*}"
if((`stat -c%s "$i"`>=`stat -c%s "$j"`));then
echo "$i is larger than base, deleting"
rm -f "$i"
fi
done
sudo rm -rf /etc/nginx/lemmy-lite
sudo cp -rf static /etc/nginx/lemmy-lite
nohup cargo run --release &