Git Product home page Git Product logo

Comments (2)

petschekr avatar petschekr commented on May 24, 2024

This definitely still an issue on random loads (clearing cache, local storage, cookies seems to make it appear more often) and on first load in new browsers.

I've traced this to a bug (race condition) in the way the element is inserted into the page. It seems like the HackGT logo is being inserted twice. In the first instance, the #hackgt group is pulled out and moved somewhere else but this doesn't happen for the second logo so it appears in the top left corner.

screenshot 2

from hackgt-org-website.

petschekr avatar petschekr commented on May 24, 2024

Found the source (I think):

Snap.load('./assets/hackgt.svg', function(loadedFragment) {

SVG file will be loaded if it doesn't exist on page load in the init() function. Then, after 100 ms timeout, resize() is called automatically calling init() again. If the SVG file hasn't loaded in 100 ms (happens if the cache is cleared and you have a slow network), it will be downloaded twice (or more).

from hackgt-org-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.