joaopereirawd / fakeLoader.js

fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulate the page preloading effect.
MIT License
721 stars 270 forks source link

There is a bug when getting the window size in Firefox #2

Closed javirln closed 5 years ago

javirln commented 9 years ago

When retrieving the Window's size using the jQuery function .width() and height() on the lines: 106 and 107 in the file fakeLoader.js/demo/js/fakeLoader.js, the functions return 0.

Please read: http://stackoverflow.com/questions/12937494/why-does-firefox-return-0-as-the-value-of-window-height

Cheers

stackmaniac commented 9 years ago

Would love to see this addressed as well.

joaopereirawd commented 5 years ago

Hi all,

$(window) calc was removed from fakeLoader.

Now you can see the spinners center in the browser window by CSS.

Check what's new: https://github.com/joaopereirawd/fakeLoader.js/releases/tag/V2.0.0