Questions tagged [domready]

the DOMContentLoaded event, the document.readyState property, or any of a number of JavaScript plugins, utilities, and modules that handle this event and property

The term "Dom Ready" generally refers to the DOMContentLoaded event or the document.readyState property, along with a number of JavaScript plugins, utilities, and modules that handle the DOMContentLoaded event or changes to the document.readyState property.

Syntax Examples

jQuery

$(document).ready(function() {
  console.log('ready');
});

AngularJS

angular.element(document).ready(function () {
  console.log('ready');
});

ded/domready

domready(function () {
  console.log('ready');
})

MooTools

window.addEvent('domready', function() {
  console.log('ready');
});

Resources

115 questions
0
votes
1 answer

Browserify bundle not playing nice with Array.forEach() or HTML written event listeners

I'm working on a website that helps poets write poems. So, I decided to use Browserify to pull in libraries (rhyme-plus-plus and dom-ready only right now, and the errors have nothing to do with the library). I've been struggling to use Browserify,…
0
votes
0 answers

Manipulating DOM element with jQuery after page loading - UX problem

I wrote JS code with JQuery to change elements styles, position and wrap them. This was done after the page was loaded. I used dom ready function, but the elements have a jerky movement while applying changes. The first thing that came to mind was…
Mironline
  • 2,755
  • 7
  • 35
  • 61
0
votes
0 answers

Separating typescript file (into 2 files) causes RequireJS Uncaught ReferenceError

I have been having problems splitting my Typescript file into 2 separate Typescript files (with one imported into the other). When the files aren't separated, my web app runs perfectly fine, but when I separate them, I get an Uncaught ReferenceError…
0
votes
2 answers

TinyMCE initialization should be inside dom ready event?

They don't encapsulate initialization code in dom ready event In their official samples like this(click view source). Is it safe to use it without dom ready event ? It controls dom ready event inside of initialization ?
Freshblood
  • 6,285
  • 10
  • 59
  • 96
0
votes
3 answers

JS Window ready and script timings

Super easy one. Using something like Mootools or JQuery or just plain old JS. Can you select a node to work on before the window being ready For instance (sry for my short hand)