SCEditor icon indicating copy to clipboard operation
SCEditor copied to clipboard

Emoticons: Lazy Loading

Open xxluke opened this issue 9 years ago • 5 comments

Everytime you load a page with the SCEditor, it creates ~31 server-requests for the emoticons. On the most pages with the editor you don't use the editor and if you do, you mostly don't open the smileys dropdown. I suggest that SCEditor should only load the emoticons when you open the dropdown.

An other option instead of lazy loading could be a sprite, but then you should offer a CSS-file with the names and positions of the emoticons, so you can use it in a (BBCode-)parser.

xxluke avatar Mar 27 '15 21:03 xxluke