-
You could use some FE javascript to detect screen width, and request a resized version of each image depending on screen size; you (currently) know that no image is going to be wider than about 762px so there would be some big savings to be had.
Probably not worth it because it would be a bit of work, and would come with inflated hosting costs, and as you say it's a pretty rare edge case. But it's a common strategy.
Edit: Just thought of another one. Just automatically downsize every uploaded image to have a max-width of 726px. Saves on hosting and bandwidth costs. Could store the originals in Glacier in case you ever want to change layout.
-
pullingteth - Lappingwaves noise (1)
https://www.lfgss.com/comments/16685284/
King_Saxlingham - Can't hear any noise ()
https://www.lfgss.com/comments/16688885/
skydancer - Hurrah! hurrah! hurrah! ()
https://www.lfgss.com/comments/16688933/
Alf0nse - Standing for the National Anthem…fuckin noise ()
https://www.lfgss.com/comments/16689131/
moocher - Waiting for the noise ()
https://www.lfgss.com/comments/16689620/
ifrik - horns on a train about to make noise ()
https://www.lfgss.com/comments/16689738/
WillMelling - The upstairs neighbour. noise ()
https://www.lfgss.com/comments/16689772/
giofox ()
https://www.lfgss.com/comments/16690094/
zazkar ()
https://www.lfgss.com/comments/16690182/ -
-
I was basically wondering if I could get the entire microcosm estate running locally in docker.
I've had the API running fine for a while now. Set that up years ago when I decided to have a go at building a mobile app.
I wasn't planning on getting either of the front ends up and running, but when you mentioned the new secure cookies & csrf tokens, I wondered how hard it would be to port it to Django. Not that anything would come of it - I was just curious.
It's actually been really easy to get Django up and running using the python:2.7 docker image... apart from the weird CNAME resolution issue.
-
Is there a guide to getting django/microweb up and running? I think I'm pretty much there, but the custom middleware seems to firing a request at the api: (e.g.
GET http://dev1.microcosm.app:8080/api/v1/hosts/my.dev.forum), which responds with a 404, and then Django raises an exception about not being able to resolve a CNAME.Thing is, I tried firing similar requests at the lufguss API, which also responded with a 404.
-
-
-
skydancer - threshold of a Republic? ()
https://www.lfgss.com/comments/16677503/
eskay - Temporary threshold ()
https://www.lfgss.com/comments/16677692/
supine - Rainy tiles meets the threshold ()
https://www.lfgss.com/comments/16678363/
King_Saxlingham - On the threshold of success. ()
https://www.lfgss.com/comments/16680096/
Yukirin - Urban/Rural threshold ()
https://www.lfgss.com/comments/16680126/
moocher - Pain threshold ()
https://www.lfgss.com/comments/16680148/
Alf0nse - threshold for a former purpose (1)
https://www.lfgss.com/comments/16680526/
TomAndJerry - threshold on a bridge ()
https://www.lfgss.com/comments/16680979/
ifrik ()
https://www.lfgss.com/comments/16681003/
WillMelling ()
https://www.lfgss.com/comments/16681100/
d0cA - Crossing the threshold ()
https://www.lfgss.com/comments/16681388/
Well_is_it - threshold between worlds ()
https://www.lfgss.com/comments/16681522/ -
-
Arducius - Sunshine lookingthrough the windmill ()
https://www.lfgss.com/comments/16666356/
Eejit - lookingthrough the south facing window ()
https://www.lfgss.com/comments/16667987/
el_presidente - lookingthrough the cave ()
https://www.lfgss.com/comments/16668209/
d0cA - Alice lookingthrough the glass ()
https://www.lfgss.com/comments/16668427/
Alf0nse - lookingthrough a fence ()
https://www.lfgss.com/comments/16669674/
King_Saxlingham - lookingthrough the fence post. ()
https://www.lfgss.com/comments/16670173/
Yukirin - Behind Bars lookingthrough (1)
https://www.lfgss.com/comments/16670723/
Well_is_it (1)
https://www.lfgss.com/comments/16670793/
supine (1)
https://www.lfgss.com/comments/16670990/
skydancer - lookingthrough barbed wire ()
https://www.lfgss.com/comments/16671052/
DethBeard - lookingthrough to the 70s ()
https://www.lfgss.com/comments/16671296/
beseku - lookingthrough the looking glass ()
https://www.lfgss.com/comments/16671303/
zazkar ()
https://www.lfgss.com/comments/16671306/
Bearlegged - Unwelcome busker/through the fence. ()
https://www.lfgss.com/comments/16671324/
TomAndJerry ()
https://www.lfgss.com/comments/16671656/
moocher - lookingthrough the curtains (1)
https://www.lfgss.com/comments/16671765/ -
-
-
-
Arducius - Sunshine lookingthrough the windmill ()
https://www.lfgss.com/comments/16666356/
Eejit - lookingthrough the south facing window ()
https://www.lfgss.com/comments/16667987/
el_presidente - lookingthrough the cave ()
https://www.lfgss.com/comments/16668209/
d0cA - Alice lookingthrough the glass ()
https://www.lfgss.com/comments/16668427/
Alf0nse - lookingthrough a fence ()
https://www.lfgss.com/comments/16669674/
King_Saxlingham - lookingthrough the fence post. ()
https://www.lfgss.com/comments/16670173/
Yukirin - Behind Bars lookingthrough ()
https://www.lfgss.com/comments/16670723/
Well_is_it ()
https://www.lfgss.com/comments/16670793/
supine ()
https://www.lfgss.com/comments/16670990/
skydancer - lookingthrough barbed wire ()
https://www.lfgss.com/comments/16671052/
DethBeard - lookingthrough to the 70s ()
https://www.lfgss.com/comments/16671296/
beseku - lookingthrough the looking glass ()
https://www.lfgss.com/comments/16671303/
zazkar ()
https://www.lfgss.com/comments/16671306/
Bearlegged - Unwelcome busker/through the fence. ()
https://www.lfgss.com/comments/16671324/
TomAndJerry ()
https://www.lfgss.com/comments/16671656/
moocher - lookingthrough the curtains ()
https://www.lfgss.com/comments/16671765/ -
-
-
Alf0nse ()
https://www.lfgss.com/comments/16659558/
skydancer - Spying on neighbours at night ()
https://www.lfgss.com/comments/16661056/
ifrik - zoom in on ... habitats in a post-apocalyptic world? or golf balls in the rain? ()
https://www.lfgss.com/comments/16661223/
Airhead - wish I had my zoom ()
https://www.lfgss.com/comments/16661236/
Eejit - zoom-ed in on this little zoom-er ()
https://www.lfgss.com/comments/16661517/
eskay - zoom out ()
https://www.lfgss.com/comments/16662175/
moocher - From a great height ()
https://www.lfgss.com/comments/16662645/
King_Saxlingham ()
https://www.lfgss.com/comments/16662699/
WillMelling - Let sleeping dogs lie. ()
https://www.lfgss.com/comments/16662763/
Well_is_it ()
https://www.lfgss.com/comments/16662805/
d0cA - Magical tower of zoom ()
https://www.lfgss.com/comments/16662888/
h2o ()
https://www.lfgss.com/comments/16662891/ -
eskay - Gutter confluence ()
https://www.lfgss.com/comments/16649364/
Alf0nse - Cliché Turbulence confluence ()
https://www.lfgss.com/comments/16651294/
Yukirin - Never miss tea time! ()
https://www.lfgss.com/comments/16651312/
skydancer - confluence of roads ()
https://www.lfgss.com/comments/16652519/
pullingteth - a confluence of shoes ()
https://www.lfgss.com/comments/16652616/
King_Saxlingham - confluence two roads join ()
https://www.lfgss.com/comments/16652664/
Well_is_it - River Roding/A406/M11 ()
https://www.lfgss.com/comments/16653417/
moocher - HolyBrook ()
https://www.lfgss.com/comments/16653993/
d0cA - Ink and Paper ()
https://www.lfgss.com/comments/16654178/
Eejit - Sky merges with space ()
https://www.lfgss.com/comments/16654187/
h2o (1)
https://www.lfgss.com/comments/16654302/ -
-
zazkar ()
https://www.lfgss.com/comments/16643194/
skydancer - Hammersmith Bridge ()
https://www.lfgss.com/comments/16643232/
iamlono - Gordon, The Last Perfect Man, with eyes closed ()
https://www.lfgss.com/comments/16643281/
moorhen - Our gate is closed ()
https://www.lfgss.com/comments/16643553/
pullingteth ()
https://www.lfgss.com/comments/16643686/
Well_is_it - Footpath closed ()
https://www.lfgss.com/comments/16644579/
Yukirin - closed Harlow Advice Center ()
https://www.lfgss.com/comments/16644814/
YorkshiremaninSurrey - The road is closed ()
https://www.lfgss.com/comments/16644907/
Alf0nse - closed with breeze blocks ()
https://www.lfgss.com/comments/16645001/
eskay - Keep the gate closed ()
https://www.lfgss.com/comments/16645030/
King_Saxlingham - The day is now closed ()
https://www.lfgss.com/comments/16645171/
moocher - closed shop ()
https://www.lfgss.com/comments/16645373/
h2o ()
https://www.lfgss.com/comments/16645450/ -
zazkar ()
https://www.lfgss.com/comments/16632397/
King_Saxlingham - colourful Bench ()
https://www.lfgss.com/comments/16633545/
skydancer - Water colour ()
https://www.lfgss.com/comments/16633817/
moorhen ()
https://www.lfgss.com/comments/16634318/
Eejit - colourful sunset ()
https://www.lfgss.com/comments/16635694/
ifrik - colourful pickles ()
https://www.lfgss.com/comments/16636179/
el_presidente - colourful window ()
https://www.lfgss.com/comments/16636687/
ObiWomKenobi - Back after a period of absence colourful ()
https://www.lfgss.com/comments/16636897/
TomAndJerry - colourful mirrors and lights ()
https://www.lfgss.com/comments/16637108/
moocher ()
https://www.lfgss.com/comments/16637142/
pullingteth ()
https://www.lfgss.com/comments/16637437/
WillMelling ()
https://www.lfgss.com/comments/16637466/
Alf0nse ()
https://www.lfgss.com/comments/16637491/
eskay - colourful matches ()
https://www.lfgss.com/comments/16637586/
Yukirin - Iridescent ()
https://www.lfgss.com/comments/16637645/
d0cA - colourful out walking ()
https://www.lfgss.com/comments/16637768/
Well_is_it ()
https://www.lfgss.com/comments/16637771/
h2o ()
https://www.lfgss.com/comments/16637817/ -
-
Well_is_it - First entry, channelling Spicy Meatball. (2)
https://www.lfgss.com/comments/16622450/
Ramsaye - Old men on benches ()
https://www.lfgss.com/comments/16623055/
King_Saxlingham - Well used. benches ()
https://www.lfgss.com/comments/16623462/
DethBeard - benches of Bosco (1)
https://www.lfgss.com/comments/16626227/
Alf0nse - Guardian of benches (1)
https://www.lfgss.com/comments/16626232/
Eejit - Hilltops ()
https://www.lfgss.com/comments/16626237/
WheelieBadPuns - benches at sunset ()
https://www.lfgss.com/comments/16627416/
supine - benches tree window (3)
https://www.lfgss.com/comments/16628216/
skydancer - True blue political bench ()
https://www.lfgss.com/comments/16628275/
giofox ()
https://www.lfgss.com/comments/16628340/
zazkar ()
https://www.lfgss.com/comments/16628346/
ifrik - benches ... but nothing to see ()
https://www.lfgss.com/comments/16628825/
pullingteth - benches More than me (1)
https://www.lfgss.com/comments/16628995/
TomAndJerry - benches - roses and reflections (2)
https://www.lfgss.com/comments/16629137/
moocher - Greetings to the New Brunette ()
https://www.lfgss.com/comments/16629185/
eskay - Cluttered benches ()
https://www.lfgss.com/comments/16629456/
d0cA - Paris benches ()
https://www.lfgss.com/comments/16629495/
h2o (1)
https://www.lfgss.com/comments/16629516
Oh, and there's also browser-based lazy loading of images: https://caniuse.com/loading-lazy-attr