Emojimagizer - emotes script for your website! | Documentation

This is the documentation for using Emojimagizer.

First, include this script below in your website to replace all emojis with image versions of those emojis of your preference:

This script adds a function called emojimagizer();. That function just does what was said above.

Syntax: emojimagizer(vendor);

Parameters

Tips

Initializing Emojimagizer (using the function) might make your site slower considering the way it works is just checking if every single emoji exists within the site, and then replacing it with an HTML image (<img>) if it does.. To help combat this, you should probably not load Emojimagizer if there are circumstances that would basically make it useless, or if there is no difference without it. For example, there might be no emojis in your HTML page. It wouldn't make sense to load emojimagizer and replace emojis when there are no emojis, so that would make your page slower due to all the checks being run. Here is how you could do this:

However, if you are certain that your site WILL have emojis then this code would be useless, and Emojimagizer would be useful (since it would be able to do its job.), so basically don't include it then.

The same thing applies to if you're trying to replace all the emojis on the site with apple emojis, but the user is using iOS. Emojimagizer would be useless in that case. This also applies to other ones too, like if the user is using an Android and Emojimagizer is being used to replace all the emojis with Google emojis, because Android already uses Google emojis.

You can detect what device is being used to access your site by searching the userAgent in JavaScript.

Another thing is that if your site doesn't have very many emojis, then it might be unnessecary to use Emojimagizer. If you have like 2 emojis or something that you want to be rendered a certain way for everyone, then you can just use HTML images (and you might have to adjust its width/height if the image is too big).

This is obvious and self explanatory, but you SHOULDN'T use Emojimagizer if you want emojis to be rendered normally as the default of your device.