locked
Background image doesn't load

    Question

  • It looks like this problem

    http://social.msdn.microsoft.com/Forums/windowsapps/en-US/df3a2993-81a6-4d0c-9f27-1e4ad1d6101c/background-image-doesnt-load-at-first?forum=winappswithhtml5

    but...

    If an image haven't been loaded at first, so the image won't be loaded at another element with the same backgroundImage.

    And Alt+Tab don't help. Only restart application can help.

    The image is a small svg-file (2.5Kb).

    I tryed to use "setTimeout", to wait "processAll", it doesn't work too.

    Monday, November 18, 2013 12:10 PM

All replies

  • Can you post a demo code so that it will be helpful to understand your problem in a better way?

    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Tuesday, November 19, 2013 12:57 AM
    Moderator
  • Unfortunatly, I can't. There is a lot of code.

    I have ListView in HtmlControl. I try to append an item into the ListView. One div-element has such CSS-code:

    .class1 {
    
        background: url('/images/picture.svg') no-repeat;
        background-size: 24px 22px;
    
    }

    And sometimes picture.svg loads and sometimes it doesn't.

    So if I connect to the application with debugger. And if I append an image <img src="/images/piscture.svg" /> by debugger, this image doesn't load too.

    P.S. Problem happens only in Windows 8.1.


    Tuesday, November 19, 2013 6:55 AM