When opening the dropdown, focus() the dropdown-toggle BEFORE triggering 'shown.bs.dropdown'

Closes #11281 by merging it (after rebasing & resolving conflicts)
grunt dist
JS: remove unused variables.
Run `grunt dist`.
Merge pull request #13091 from twbs/unused-js

Remove unused javascript
grunt dist