kristopolous / BOOTSTRA.386

A vintage 1980s DOS inspired Twitter Bootstrap theme
https://bootstra386.com
Apache License 2.0
6.62k stars 309 forks source link

progressive animation sometimes doesn't work #72

Open BigBrain-Industries opened 5 years ago

BigBrain-Industries commented 5 years ago

I've enabled progressive animation (by setting body visibility to hidden). Sometimes, it seems the body remains hidden. This happens sometimes Chrome but much more in Firefox. I found this line in the bootstrap.js: pass = ($(document.body).css('visibility') == 'visible') ? 1 : 0 when I debug this line, pass is sometimes 1 and sometimes 0, when refreshing on the same page (cache enabled/disabled doesn't seem to matter). Interestingly, even when it's 1, calling $(document.body).css('visibility') in the console, immediately after that line returns hidden.

Other than that, keep up the amazing work. It took me 2 minutes to integrate this in our website and it worked on the first try.

kristopolous commented 4 years ago

Honestly things are probably different now then in 2013 when I wrote that. I should revisit it all. I've had dreams of a new version recently.