PageSourceSearch

https://dcl.toyokeizai.net/ap/resources/js/common/imageLoader.js?Var=20260715

js toyokeizai.net collected 2026-10-01 08:30:56 UTC 1,612 bytes, 67 lines download raw bytes

1function imageLoad(win, removeLodingFlg) {
2	setTimeout(function() {
3		if (win != null && win != undefined) {
4			var $images = $("img", $(window)[0].document);
5			imageLoadNoDelay($images, removeLodingFlg);
6		}
7	}, 200);
8}
9
10function imageLoadDelay(divId) {
11	log("imageLoadDelay:" + divId);
12
13	setTimeout(function() {
14		var $images = $("#" + divId + " img");
15		imageLoadNoDelay($images);
16	}, 200);
17}
18
19var imgdefereds=[];
20function imageLoadNoDelay($images, removeLodingFlg) {
21	if ($images.length > 0) {
22		$images.each(function() {
23
24			try {
25				var $image = $(this);
26				if ($image.attr("data-url") != null && $image.attr("data-url") != undefined) {
27					var dfd=$.Deferred();
28					var prImg = new Image();
29					prImg.src = $image.attr("data-url");
30
31					if (prImg.complete) {
32						$image.attr("src", $image.attr("data-url"));
33
34						$image.attr("data-loaded", "ok");
35						$image.removeAttr("data-url");
36
37						return;
38				    }
39
40					prImg.onload = function(){
41						$image.attr("src", $image.attr("data-url"));
42
43						$image.attr("data-loaded", "ok");
44						$image.removeAttr("data-url");
45						dfd.resolve();
46					};
47
48					prImg.onerror = function(){
49						$image.attr("src", contextPath + "/resources/images/contentsDefaultImage.png");
50
51						$image.attr("data-loaded", "error");
52						$image.removeAttr("data-url");
53						dfd.resolve();
54					}
55					imgdefereds.push(dfd);
56				}
57			} catch(e) {
58				console.log(e.name);
59			}
60		});
61	}
62	if (removeLodingFlg == '1') {
63		$.when.apply(null,imgdefereds).done(function(){
64			LD.removeIcon();
65		})
66	}
67}

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.