-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a script tag which contains next code
<script type="text/javascript">
window.onload = function loadStuff() {
var image = document.querySelector(".blurry-load");
image.src = image.dataset.large
image.onload = () => {
image.classList.add("blur-out");
image.classList.remove("blurry-load");
};
};
</script>
This code loads heavy background image and then replaces the lightweight version with this image. So it would be nice to show that something is loading
Asked: 2021-02-27 01:02:03 +0800
Seen: 5 times
Last updated: Feb 27 '21
Scroll Listbox (or Grid) with MVVM model to bottom
How to stop combining commands in an ajax call ?
zk.auSend not called on composer
Font Awesome Problem with IE8 when security option "font download" is disabled
Send a client event with JSON data
How to capture the Browser Window Resize/Size Event
Toggled Popup - Close ONLY on toggling, not on focus lost