You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is along the same lines as #22, but toward a different purpose. Let's say I have a div where juvia loads the comments, which I specify in the juvia options.container property:
<divid="juvia-comments"></div>
It'd be nice if juvia added a juvia-loading class to that container when the ajax request starts and then change it to a juvia-loaded class when the comments have loaded. Separate from firing a javascript event as in #22, this would allow me to do something like this.
<divid="juvia-comments"><spanid="juvia-loading-msg">Comments are loading...</span><spanid="juvia-javascript-msg">JavaScript must be enabled for comments.</span></div>
And of course, I could apply other styles too like making the juvia comment section appear differently before and after comments load. And no javascript needed.
The text was updated successfully, but these errors were encountered:
By the way, of course, I can already do this trivial example as-is, since juvia will simply replace everything inside the container once it's loaded (and I could nest the js message inside a noscript tag).
But the class stuff would still allow other styling tweaks and whatnot based on the state of the comments having loaded or not.
This is along the same lines as #22, but toward a different purpose. Let's say I have a div where juvia loads the comments, which I specify in the juvia
options.container
property:It'd be nice if juvia added a
juvia-loading
class to that container when the ajax request starts and then change it to ajuvia-loaded
class when the comments have loaded. Separate from firing a javascript event as in #22, this would allow me to do something like this.Then in my CSS:
And of course, I could apply other styles too like making the juvia comment section appear differently before and after comments load. And no javascript needed.
The text was updated successfully, but these errors were encountered: