themesberg / pixel-pro-bootstrap-ui-kit

Official public repository for Pixel Pro Bootstrap UI Kit
7 stars 2 forks source link

Disable preloader #1

Open ramjke opened 4 years ago

ramjke commented 4 years ago

How to remove annoying preloader correctly? If I remove div class="preloader" page components, font, icons start flickering on page load. Spaces theme doesn't have this issue.

zoltanszogyenyi commented 4 years ago

Hey @ramjke,

Fully removing the preloader can be done like this:

  1. Remove the _preloader.html file and the includes
  2. Remove the first few lines of preloader scripts from the pixel.js file (https://github.com/zoltanszogyenyi/pixel-pro-bootstrap-4-ui-kit/blob/develop/src/assets/js/pixel.js)
  3. Remove the preloader styles from here (https://github.com/zoltanszogyenyi/pixel-pro-bootstrap-4-ui-kit/blob/develop/src/scss/pixel/components/_preloader.scss)

Let me know if the issue will still persist. Thanks!