dist/js/glightbox.js
function createHTML(htmlStr) {
        var frag = document.createDocumentFragment(),
            temp = document.createElement('div');
        temp.innerHTML = htmlStr;
        while (temp.firstChild) {
            frag.appendChild(temp.firstChild);
        }
        return frag;
    }
function createHTML(htmlStr) {
        var frag = document.createDocumentFragment(),
            temp = document.createElement('div');
        temp.innerHTML = htmlStr;
        while (temp.firstChild) {
            frag.appendChild(temp.firstChild);
        }
        return frag;
    }
function createHTML ( htmlStr ) { var frag = document . createDocumentFragment ( ) , temp = document . createElement ( 'div' ) ; temp . innerHTML = htmlStr ; while ( temp . firstChild ) { frag . appendChild ( temp . firstChild ) ; } return frag ; }
Create a document fragment

@param {string} html code
Create a document fragment