How to verify background (css) image was loaded?

前端 未结 5 1398
离开以前
离开以前 2021-02-03 22:00

I have the following CSS class that I\'m applying on a tag:

.bg {
   background-image: url(\'bg.jp         


        
5条回答
  •  悲哀的现实
    2021-02-03 22:39

    Give the class to a div with visibility:hidden at the initial page load. That way, it'll already be in the browser cache when you assign the class to your table cell.

提交回复
热议问题