Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do the toolbar buttons take so long to load when I have multiple htmlArea editors on the same page?

0
Posted

Why do the toolbar buttons take so long to load when I have multiple htmlArea editors on the same page?

0

This is a bug/feature of Internet Explorer. htmlArea dynamically updates the content of your page to replace a textarea with the WYSIWYG editor. In Internet Explorer, when you update the content of a page after it has loaded and insert an image it will load the image from the server EVEN if has the image in it’s cache. This means if you have 10 htmlareas on the same page the “bold” toolbar button will be loaded 10 times. One workaround for this is to move all your editor_generate() scripts to the bottom of the page, combine them into one script tag, and remove the “defer” attribute from that script tag. This will cause them all to run just as the page is finishing loading and the cached images WILL be used. Meaning, the browser will only need to load each image once.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123