• Dear guys, I’m experiencing a FOUC ( https://en.wikipedia.org/wiki/Flash_of_unstyled_content ) in the wordpress default widgets (recent posts, for instance) I’m using in my website.

    After some investigations, I found the culprint in theme-script.js that adds bootstrap classes to the widgets elements when the page is already rendered:

    https://api.jquery.com/ready/

    https://eager.io/blog/how-to-decide-when-your-code-should-run/

    I understand your approach, but IMHO this is not the clean way to enhance WP default widgets: you should have provide your version of the widgets with bootstrap classes integrated by default (that is, via PHP) instead of patching them via javascript.

    Is there any plan in the future to provide a version of yours of the default widgets with bootstrap?

    Cheers

    • This topic was modified 4 years, 5 months ago by lllor.
Viewing 1 replies (of 1 total)
  • Theme Author Afterimage Designs

    (@afterimagedesigns)

    Hi @lllor,

    Apologies for very late replying on this issue. This issues will be noted and underway of fixing this issue on future updates. Thanks for the your support.

Viewing 1 replies (of 1 total)
  • The topic ‘Flash of unstyled content due to theme-script.js’ is closed to new replies.