Currently we have as dependencies both jquery.cookie and mediawiki.cookie. Move to mediawiki.cookie.
|Open||None||T133741 CentralNotice: reducing initial JS load? (tracking)|
|Open||None||T133434 CentralNotice: Use only one cookie library|
Note that mediawiki.cookie uses jquery.cookie underneath. So this won't reduce JS payload.
Basically, if you need to set cookies in ways that is specific to one logical wiki (e.g. cookie name is prefixed, so that it works correctly if multiple wikis are hosted on the same domain), and that honours the PHP settings for cookie expiration etc., then use mw.cookie.
If you need to set generic cookies unrelated to a specific wiki context, then you'd want to use $.cookie directly.