NodeGuy / server-date

Make the server's clock available in the browser.
http://www.nodeguy.com/serverdate/
Mozilla Public License 2.0
193 stars 52 forks source link

ServerDate on CDN #34

Closed glowworms closed 5 years ago

glowworms commented 6 years ago

Please consider submitting ServerDate to cdnjs.com They will host the script for free.

NodeGuy commented 6 years ago

Good idea. Why'd you close the issue?

glowworms commented 6 years ago

Thanks. That would be great.

You can Request it here by submitting an issue: https://github.com/cdnjs/cdnjs/issues

NodeGuy commented 6 years ago

So let me understand this better: You want to synchronize the browser clock with the clock of one of CDNJS's servers?

glowworms commented 6 years ago

hmm... I don't know what that would produce. Would the CDNJS servers be in random timezones?

NodeGuy commented 6 years ago

I have no idea. I don't think this is what you want—ServerDate is for synchronizing the browser with a specific server that's hosting the script.

glowworms commented 6 years ago

Could you release a Dev version and get cloudflare to host it to try to see if we could make this work the way we want? Or create fork of ServerDate and modify it to work hosted from a cloudflare?

I could try to help you with this.

NodeGuy commented 6 years ago

I'm open to it but I'd like to hear more about your use case first. What are you trying to accomplish?

sreekotay commented 5 years ago

If you have ServerDate.js hosted on a CDN, no one has to deploy it to/on their server (if the goal is to sync multiple clients, for example).

NodeGuy commented 5 years ago

Right, but I don't think that's going to work well because the CDN will be serving from multiple servers.

Regardless, CDNJS requires popularity of at least 200 stars for submission. I'm closing this issue for now but we can re-open in the future if it makes sense.