Use document fragment for the hint nodes.

The appendChild in the fragment is faster than multiple operation on document.