Dúvarkí

duvarki.neocities.org

18,988 views
22 followers
670 updates
0 tips
duvarki updated their site.
6 days ago
3 likes
duvarki's avatar duvarki 6 days ago

Apologies for the all the page updates, I added little theme switcher!

2 likes
duvarki's avatar duvarki 6 days ago

it seems like the language and theme switcher are broken until the website's cache is cleared on the user end, which is a bit annoying. I wish there was a way for a website to force a complete reload or something

2 likes
satyrwoud's avatar satyrwoud 6 days ago

There kinda is! You can put a "?v=2" (or whatever version number) after the link to the stylesheet so the browser has to reload it again

3 likes
duvarki's avatar duvarki 6 days ago

Thank you! I have included it on my site, let's see if it works!

that1rogue's avatar that1rogue 6 days ago

alternatively, a little JS in a script tag to append the date/time to the stylesheet href as a url param means you never need to update the version manually to ensure users always get the newest stylesheet.

2 likes
duvarki's avatar duvarki 6 days ago

Ooo that's a cool way of doing it! Does your website use that? May I steal it for mine own :p

2 likes
that1rogue's avatar that1rogue 6 days ago

You should be able to add the following code either in a script tag on the page, or in a global script.js file or something if you have one of those, which it looks like you do. document.querySelectorAll("link[rel='stylesheet']").forEach(link => link.href = link.href.split('?')[0] + '?v=' + Date.now());

2 likes
2 likes

Website Stats

Last updated 17 hours ago
CreatedFeb 5, 2023
Site Traffic Stats

Tags

conlangs personal poetry christianity art