All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

document ready

  • # July 2, 2013 at 3:44 am

    why doesn’t work?

    # July 2, 2013 at 4:11 am

    Close your code with this }); rather than } and select jQuery from the JS option menu.

    For this bit of JS code you really don’t need jQuery or the document ready declaration.

    # July 2, 2013 at 4:48 am

    Then how to make ? That when everything okey I mean ready then giving the height to the block?

    # July 2, 2013 at 5:37 am

    Sorry, just meant your code snippet would work within CodePen without jQuery or document ready. If you’re going to be using other jQuery code on your page then uses that.

    For pure JavaScript there are various methods of checking everything is loaded which I’m not too familiar with as I always end up using jQuery anyway.

    # July 2, 2013 at 6:34 am

    Am thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed