WordPress.org

Ready to get started?Download WordPress

Forums

Montezuma
[resolved] Doesn't Work Without JavaScript (4 posts)

  1. edent
    Member
    Posted 10 months ago #

    I've had users complain that they are seeing a blank page if JavaScript is disabled. All the HTML and CSS are being loaded, but the page fails to render. Can this be fixed so older devices, or users with security concerns can view the page?

  2. edent
    Member
    Posted 10 months ago #

    Add the following to your custom CSS

    body {
    	opacity: 1;
    }
    
    .post-thumb img {
    	opacity: 1;
    }

    Seems really odd that the default won't display at all. Oh well.

  3. CrouchingBruin
    Member
    Posted 10 months ago #

    There's a comment in the virtual content.css file that says (about opacity for the body element being set to 0):

    will be turned on ( = set to '1' ) with jQuery after google fonts, if any, have loaded and masonry layout, if any, was applied

    I guess this was put in so the user wouldn't see a lot of screen redraws as the page was loading. I set mine to 1 just to try it out and I thought I detected a slight difference in the "font flashing" that affects sites using Google fonts; the flashing seemed to be more apparent at 1 than 0, but maybe it's my imagination.

  4. CrouchingBruin
    Member
    Posted 10 months ago #

    Nope, on second thought, it didn't seem to affect the font flashing at all.

Reply

You must log in to post.

About this Theme

About this Topic

Tags