On 31 Aug 2018, at 08:46, bimlas <bimba....@gmail.com> wrote:
It would be nice to display a message while Tiddly is not initialized, because visitors, who don't know why the page is not responding may leave it after a few seconds. Is this possible?
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/93e2a558-41e7-4390-a9a2-d07921bc8e22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If I'm right, using a splash image is not possible because of the "chicken and egg" dilemma: you cannot display an image which is not exists yet (wiki filesystem is not initialized). But you can hardcode a CSS spinner or a message at least.
<style>
body { background-size:cover; background-image:url("PASTE IMAGE DATA HERE"); }
</style>
.tc-body { background-image: none; }That's it. No fancy plugins, no core changes. Let me know how it goes...
Did you know? You can use animated GIFs; encode it on https://www.base64-image.de/ for example. See my page for demo: https://bimlas.gitlab.io/ - plase tell me if the site is not loading (Error 404/505) because I will see for another host in this case (I love GitLab, but pages are slow, or even worse: does not working).
<script>
// Remove splash screen when Tiddly is loaded (doesn't work in older IEs)
document.addEventListener('DOMContentLoaded', function(){
document.body.style.backgroundImage = 'none';
}, false);
</script>
<style>
body {
height: 80vh;
background-position: center center;
background-repeat: no-repeat;
background-image: url("data:image/gif;base64,IMAGE_DATA...");
</style>
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/670611e7-e618-4940-ac5b-f1a543cd8e06%40googlegroups.com.
Great work and comprehensive demo. Perhaps explaining the use case in the documentation would help newbies.
Eg;
Larger tiddlywikis and those loaded over the internet may take a little time to load. Once loaded, performance improves, because it is now running within the browser. The splash screen ensures people know the loading process is taking place, reducing the chance they will leave your wiki.
Have we got a timeframe for the next release?
I have few "simple" documentation items in the github issues queue, and could submit more.
Regards
Tony