CKEditor only loads after onload?

562 views Asked by At

I'm developing an enhancement extension for a website. I use CKEditor to add a WYSIWYG editor to the forums.

However, I've noticed that CKEditor only loads after every resource (body onload) has loaded (body onload). Most people in the forums use 5MB+ GIFs, so this really affects the load time.

enter image description here

Since all the javascript files are in the extension, file sizes aren't the problem. I'm not using jQuery either.

Is it possible to alter CKEditor or something so it runs only when the DOM is loaded?

1

There are 1 answers

0
Duncan On BEST ANSWER

As @Reinmar suggested, I've used CKEDITOR.replace() and now I can load it before body onload.

CKEDITOR.replace("id");