Git Product home page Git Product logo

Comments (8)

carlwoodhouse avatar carlwoodhouse commented on July 21, 2024 1

display: none; on the div ...

from jquery.cookiebar.

carlwoodhouse avatar carlwoodhouse commented on July 21, 2024

are you using it on an existing div or letting cookiebar create the div?

from jquery.cookiebar.

wblommaert avatar wblommaert commented on July 21, 2024

This one is relatively old but we were experiencing similar behaviour where the cookiebar would be visible for a split second before it would be hidden.

I solved this by adding a fade-in transition effect via css (using opacity) on the cookiebar div, which gives the javascript enough time to load and check whether the cookiebar should be shown or not. I think this is a graceful way of resolving this issue.

from jquery.cookiebar.

dangelion avatar dangelion commented on July 21, 2024

@carlwoodhouse I still have this bug. I'm working on an existing div as cookie bar. In the meantime you could suggest a workaround to solve it?

from jquery.cookiebar.

carlwoodhouse avatar carlwoodhouse commented on July 21, 2024

The resolution for this when using a custom div is to just apply display: none as default.

from jquery.cookiebar.

senlin avatar senlin commented on July 21, 2024

The resolution for this when using a custom div is to just apply display: none as default.

Doing that simply always hides the cookiebar, I fail to see how this is the right solution?

from jquery.cookiebar.

carlwoodhouse avatar carlwoodhouse commented on July 21, 2024

@senlin it hides it by default if you do this, but the code will show the bar (clearing the display non) if the user hasn't dismissed the prompt already; if they have dismissed it - it simply stays hidden.

from jquery.cookiebar.

senlin avatar senlin commented on July 21, 2024

ok thanks

from jquery.cookiebar.

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.