We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e29c3a commit 96521e2Copy full SHA for 96521e2
js/menikah.js
@@ -47,11 +47,13 @@ function scrollFunction() {
47
}
48
49
// Preloader
50
-$(document).ready(function($) {
+// Show preloader until user clicks anywhere
51
+$(window).on("load", function () {
52
+ $("body").addClass("preloader-site");
53
+});
54
+
55
+// Hide preloader only when user clicks
56
+$(document).one("click", function () {
57
$(".preloader-wrapper").fadeOut();
58
$("body").removeClass("preloader-site");
-});
-$(window).load(function() {
- var Body = $("body");
- Body.addClass("preloader-site");
59
0 commit comments