Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I avoid a content.css request for each TinyMCE instance?

I think I'd like to have many TinyMCE instances on one page, but initializing a bunch of them seems pretty slow. One thing that stands out is that each instance is doing a GET request for the content.css for its theme. Making sure that CSS is cacheable is one approach, but can I avoid making some of those requests in the first place?

Or, since each TinyMCE instance is an iframe, does it need to do a request for each one?

like image 352
keturn Avatar asked Dec 05 '25 00:12

keturn


1 Answers

As far as i know the request is made and you cannot do much about it (except using caching). We already tried to optimize tinymce initialization - especially css too. You have several options for optimization (except caching):

  • put all your css code used in your editor content into one single css file (the content.css of your selected theme)
  • use gzip or another mechanism to have only one single request for all your css files on your page
like image 114
Thariama Avatar answered Dec 06 '25 15:12

Thariama