PageSourceSearch

https://media.innopolis.university/bitrix/js/landing/polyfill.js

js innopolis.university collected 2026-09-25 09:09:11 UTC 1,602 bytes, 98 lines download raw bytes

1/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
2(function(w){
3	"use strict";
4
5	if (!w.loadCSS)
6	{
7		w.loadCSS = (function() {});
8	}
9
10	var rp = loadCSS.relpreload = {};
11
12	rp.support = (function() {
13		var ret;
14		try
15		{
16			ret = w.document.createElement("link").relList.supports("preload");
17		}
18		catch (e)
19		{
20			ret = false;
21		}
22		return function()
23		{
24			return ret;
25		};
26	})();
27
28
29	rp.bindMediaToggle = function(link)
30	{
31		var finalMedia = link.media || "all";
32
33		function enableStylesheet()
34		{
35			link.media = finalMedia;
36		}
37
38		if (link.addEventListener)
39		{
40			link.addEventListener("load", enableStylesheet);
41		}
42		else if (link.attachEvent)
43		{
44			link.attachEvent("onload", enableStylesheet);
45		}
46
47		setTimeout(function() {
48			link.rel = "stylesheet";
49			link.media = "only x";
50		});
51
52		setTimeout(enableStylesheet, 3000);
53	};
54
55	rp.poly = function()
56	{
57		if (rp.support())
58		{
59			return;
60		}
61
62		var links = w.document.getElementsByTagName("link");
63
64		for (var i = 0; i < links.length; i++)
65		{
66			var link = links[ i ];
67			if (link.rel === "preload" && link.getAttribute("as") === "style" && !link.getAttribute("data-loadcss"))
68			{
69				link.setAttribute("data-loadcss", true);
70				rp.bindMediaToggle(link);
71			}
72		}
73	};
74
75	if (!rp.support())
76	{
77		rp.poly();
78
79		var run = w.setInterval(rp.poly, 500);
80
81		if (w.addEventListener)
82		{
83			w.addEventListener("load", function() {
84				rp.poly();
85				w.clearInterval(run);
86			});
87		}
88		else if (w.attachEvent)
89		{
90			w.attachEvent("onload", function() {
91				rp.poly();
92				w.clearInterval(run);
93			});
94		}
95	}
96
97	w.loadCSS = loadCSS;
98})(window);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.