Neocities.org

dcb goin time sweeping

dotcomboom.neocities.org

64,597 views
70 followers
6,628 updates
0 tips
Neohitz now supports, along with view counts and last updated dates, follower counts, update counts, tip counts, creation dates, and recent profile posts! I seek rest.
3 likes
joppiesaus 6 years ago

Amazing stuff, I was writingsomething like this but using client side XHR, but I think this is a bad idea because that means you're stressing the neocities API a lot.(At least if you do it on page load, instead of just a "query stats" button for demonstration purposes)

1 like
dotcomboom 6 years ago

I don't know, there could be some way to lower the load on Neocities. I suppose it would be possible to "cache" information for a maybe 12-hour or 1 day maximum, or maybe a little more so if someone puts multiple hit counters on every page, it wouldn't keep accessing Neocities servers as they go from page to page. I was using the API before but right now I'm only using it for Last Updated dates since it doesn't say

dotcomboom 6 years ago

"n hours ago" or "n years ago". Right now I'm scraping the site profile page with may not be the best way to do things, but if you could get all of the information from the API that's solely what I'd use.

elementz 6 years ago

@joppiesaus could this happen with the Fetch API?

elementz 6 years ago

I’m just asking because imo I think fetch is better than XHR

joppiesaus 6 years ago

Yes, you could (probably) do this using the Fetch API. I meant that doing such a request on a home page on page load would be a bad idea since it would probably overstress the neocities API. But for just diagnostic/test/demonstration page with a input field and a button and a warning would probably be OK.

Website Stats

Last updated 1 year ago
CreatedMar 18, 2018
Site Traffic Stats