Skip to content

Only show image base snowflakes after the image has fully loaded #54

Open

Description

@MadeInSwitzerland

If the loading of the snowflake image takes a long time, empty placeholders can be seen, what looks very ugly!
Please insert following 2 lines of code after line 140 (jQuery variant):
$(flakeMarkup).css('display','none'); // Only show the snowflake after the image has been loaded
flakeMarkup.onload = function () {$(flakeMarkup).css('display','block');};

Activity

  1. loktar00 commented on Nov 26, 2019

    @loktar00
    Owner

    Alternatively you could just have the plugin initialize after the image loads, load the image via JS and listen for the load even of the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions