Home › Forums › Themes Support › Gecko › Vertical Slider loading order problem
- This topic has 7 replies, 3 voices, and was last updated 7 years, 1 month ago by Harry.
-
AuthorPosts
-
-
October 2, 2017 at 8:12 pm #11119
I’ve got a loading problem on my homepage…the first slide need to load at first but some background image are loading randomly…Is there a solution to load the first slide image at the begining ?
-
October 2, 2017 at 9:03 pm #11128
Hi,
What’s the first slide and the first image on your site?
-
October 2, 2017 at 9:18 pm #11131
when the homapage is totally loaded…the the first slide…the one with the texte and a background
-
October 2, 2017 at 9:25 pm #11132
.vc_custom_1504969572587 {
background-image: url(https://www.kqk.ca/wp-content/uploads/parallax_accueil_fw17-18_look7-4.jpg?id=5752) !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-size: cover !important;
} -
October 2, 2017 at 9:39 pm #11134
.badge{display:none;}
h4, h3{display:none;}i put that to try to just don’t display these element till this image is not loaded. It’s my only idea
-
October 2, 2017 at 9:59 pm #11136
i put that in the js part of the theme option to know when my image is load and i’m gonna change the property “display” of my hidden elements 🙂
var img = new Image();
img.onload = function() { alert(“Height: ” + this.height); }
img.src = “https://www.kqk.ca/wp-content/uploads/parallax_accueil_fw17-18_look7-4.jpg”; -
October 2, 2017 at 11:12 pm #11139
i get it with this code:
var img = new Image();
img.onload = function() {
var x = document.getElementsByTagName(“h3”);
var y = document.getElementsByTagName(“h4”);
var z = document.getElementsByClassName(“visualHack”);
for (i = 0; i < x.length; i++) {
x.style.display= “block”;
}
for (j = 0; j < y.length; j++) {
y[j].style.display= “block”;
}
for (k = 0; k < z.length; k++) {
z[k].style.display= “block”;
}
}
img.src = “https://www.kqk.ca/wp-content/uploads/parallax_accueil_fw17-18_look7-4.jpg”; -
October 3, 2017 at 5:39 pm #11175
Hi,
Sorry for late reply.
This mean you solved your issue?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.