use DocumentFragment when buildin folds to speedup things. refs #https://github.com/travis-ci/travis-ci/issues/1340
Merge pull request #5 from staabm/docfrag

use DocumentFragment when buildin folds to speedup things.