Editing Resizing Children This edit will create a new revision. Your details (optional) Name Email (won’t be displayed; might be used for Gravatar) URL Test case details Title * Published (uncheck if you want to fiddle around before making the page public) Description (in case you feel further explanation is needed)(Markdown syntax is allowed) Testing whether jQuery and JavaScript have a large difference in performance on resizing children. Are you a spammer? (just answer the question) Preparation code Preparation code HTML (this will be inserted in the <body> of a valid HTML5 document in standards mode) (useful when testing DOM operations or including libraries) <div id="sections"> <div id="content"> <p>Bresaola beef ribs andouille corned beef, t-bone pancetta shankle drumstick shoulder. Tail short ribs pork chop flank, <img src="http://www.igourmet.com/images/topics/bacon1.jpg" align="right" /> tongue pork loin salami beef ribs meatball. Cow beef ribs shoulder shankle strip steak. Pork tenderloin ribeye, beef spare ribs ground round shank meatloaf. Ground round brisket meatball andouille beef ribs, bacon meatloaf beef. Sirloin beef ribs fatback ball tip, biltong shankle ribeye ground round spare ribs rump pork loin ham hock. Strip steak tongue venison tenderloin, bresaola swine pork ham hock shoulder fatback tri-tip pancetta bacon.</p> <p>Pig turkey boudin fatback, corned beef ham hock drumstick. Shankle ground round bresaola pastrami beef ribs venison ribeye shank. Shankle short ribs ribeye, pastrami drumstick ball tip pork strip steak short loin jowl swine bresaola tongue turkey ground round. Salami short ribs beef, tongue pork loin ball tip cow chicken chuck hamburger ground round jerky meatball. Ham hamburger ham hock strip steak bresaola, spare ribs venison cow drumstick pork bacon tri-tip. Short ribs shankle t-bone swine ground round, drumstick sausage pancetta beef corned beef beef ribs cow. Pork belly biltong ham hock meatball.</p> <p>Ball tip ground round meatball, pancetta bacon swine corned beef fatback short loin strip steak jerky beef. Strip steak swine bacon, tail jerky pastrami shankle tongue flank venison ribeye chicken. Meatloaf pork belly brisket cow andouille jowl short loin flank. Meatball boudin bresaola cow. Pastrami chuck tenderloin chicken pig. Meatball short loin t-bone spare ribs shoulder drumstick. Hamburger corned beef strip steak, shank fatback salami bacon beef ground round.</p> </div> <div id="about"> <p>Bresaola beef ribs andouille corned beef, t-bone pancetta shankle drumstick shoulder. Tail short ribs pork chop flank, <img src="http://www.igourmet.com/images/topics/bacon1.jpg" align="right" /> tongue pork loin salami beef ribs meatball. Cow beef ribs shoulder shankle strip steak. Pork tenderloin ribeye, beef spare ribs ground round shank meatloaf. Ground round brisket meatball andouille beef ribs, bacon meatloaf beef. Sirloin beef ribs fatback ball tip, biltong shankle ribeye ground round spare ribs rump pork loin ham hock. Strip steak tongue venison tenderloin, bresaola swine pork ham hock shoulder fatback tri-tip pancetta bacon.</p> <p>Pig turkey boudin fatback, corned beef ham hock drumstick. Shankle ground round bresaola pastrami beef ribs venison ribeye shank. Shankle short ribs ribeye, pastrami drumstick ball tip pork strip steak short loin jowl swine bresaola tongue turkey ground round. Salami short ribs beef, tongue pork loin ball tip cow chicken chuck hamburger ground round jerky meatball. Ham hamburger ham hock strip steak bresaola, spare ribs venison cow drumstick pork bacon tri-tip. Short ribs shankle t-bone swine ground round, drumstick sausage pancetta beef corned beef beef ribs cow. Pork belly biltong ham hock meatball.</p> <p>Ball tip ground round meatball, pancetta bacon swine corned beef fatback short loin strip steak jerky beef. Strip steak swine bacon, tail jerky pastrami shankle tongue flank venison ribeye chicken. Meatloaf pork belly brisket cow andouille jowl short loin flank. Meatball boudin bresaola cow. Pastrami chuck tenderloin chicken pig. Meatball short loin t-bone spare ribs shoulder drumstick. Hamburger corned beef strip steak, shank fatback salami bacon beef ground round.</p> </div> <div id="media"> <p>Bresaola beef ribs andouille corned beef, t-bone pancetta shankle drumstick shoulder. Tail short ribs pork chop flank, <img src="http://www.igourmet.com/images/topics/bacon1.jpg" align="right" /> tongue pork loin salami beef ribs meatball. Cow beef ribs shoulder shankle strip steak. Pork tenderloin ribeye, beef spare ribs ground round shank meatloaf. Ground round brisket meatball andouille beef ribs, bacon meatloaf beef. Sirloin beef ribs fatback ball tip, biltong shankle ribeye ground round spare ribs rump pork loin ham hock. Strip steak tongue venison tenderloin, bresaola swine pork ham hock shoulder fatback tri-tip pancetta bacon.</p> <p>Pig turkey boudin fatback, corned beef ham hock drumstick. Shankle ground round bresaola pastrami beef ribs venison ribeye shank. Shankle short ribs ribeye, pastrami drumstick ball tip pork strip steak short loin jowl swine bresaola tongue turkey ground round. Salami short ribs beef, tongue pork loin ball tip cow chicken chuck hamburger ground round jerky meatball. Ham hamburger ham hock strip steak bresaola, spare ribs venison cow drumstick pork bacon tri-tip. Short ribs shankle t-bone swine ground round, drumstick sausage pancetta beef corned beef beef ribs cow. Pork belly biltong ham hock meatball.</p> <p>Ball tip ground round meatball, pancetta bacon swine corned beef fatback short loin strip steak jerky beef. Strip steak swine bacon, tail jerky pastrami shankle tongue flank venison ribeye chicken. Meatloaf pork belly brisket cow andouille jowl short loin flank. Meatball boudin bresaola cow. Pastrami chuck tenderloin chicken pig. Meatball short loin t-bone spare ribs shoulder drumstick. Hamburger corned beef strip steak, shank fatback salami bacon beef ground round.</p> </div> </div> <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> Include JavaScript libraries as follows: <script src="//cdn.ext/library.js"></script> Define setup for all tests (variables, functions, arrays or other objects that will be used in the tests) (runs before each clocked test loop, outside of the timed code region) (e.g. define local test variables, reset global variables, clear canvas, etc.) (see FAQ) //create function, it expects 2 values. function insertAfter(newElement,targetElement) { //target is what you want it to go after. Look for this elements parent. var parent = targetElement.parentNode; //if the parents lastchild is the targetElement... if(parent.lastchild == targetElement) { //add the newElement after the target element. parent.appendChild(newElement); } else { // else the target has siblings, insert the new element between the target and it's next sibling. parent.insertBefore(newElement, targetElement.nextSibling); } } Define teardown for all tests (runs after each clocked test loop, outside of the timed code region) (see FAQ) Code snippets to compare Test 1 Title Async (check if this is an asynchronous test) Code $('#sections').hide(); Test 2 Title Async (check if this is an asynchronous test) Code var parent = document.getElementById('sections'); $(parent).hide();