UNPKG

@pageworks/pjax

Version:

Turns any website into a SPA using Fetch and link prefetching.

15 lines 645 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var get_elements_1 = require("./util/get-elements"); var check_element_1 = require("./util/check-element"); exports.default = (function (el, pjax) { var elements = get_elements_1.default(el, pjax); if (pjax.options.debug && elements.length === 0) { console.log('%c[Pjax] ' + "%cno elements could be found, check what selectors you're providing Pjax", 'color:#f3ff35', 'color:#eee'); return; } for (var i = 0; i < elements.length; i++) { check_element_1.default(elements[i], pjax); } }); //# sourceMappingURL=parse-dom.js.map