diff options
| author | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2011-10-12 22:59:58 +0000 |
|---|---|---|
| committer | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2011-10-12 22:59:58 +0000 |
| commit | b5b09b329ccd9bcf54b3cf06884eda75f709e0c1 (patch) | |
| tree | d19e1251be589b8c8eda2635b7df475c3056f49d /htroot/js/yacyinteractive.js | |
| parent | a9838f8b995573bb94832f7cd30f540450004b3a (diff) | |
BOOSTED the image search function. The result page now shows the images as embedded image link from the original source and not from the
built-in image buffering and re-sizing servlet. The result is shown much faster now not because YaCy does not need to re-size the images but
for a very strange other reason: because of RFC specification (http://tools.ietf.org/html/rfc2616#section-8.1.4) a browser does not open more than
two connections to the same server at the same time. If the YaCy image servlet is used, then the target host is the YaCy host for all images
and that prevents a parallel computation of the image loading.
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7998 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/js/yacyinteractive.js')
| -rw-r--r-- | htroot/js/yacyinteractive.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/htroot/js/yacyinteractive.js b/htroot/js/yacyinteractive.js index ba0cdec7a..b84307904 100644 --- a/htroot/js/yacyinteractive.js +++ b/htroot/js/yacyinteractive.js @@ -225,7 +225,8 @@ function resultLine(type, item, linenumber) { if (type == "image") { html += "<div style=\"float:left\">"; html += "<a href=\"" + item.link + "\" class=\"thumblink\" onclick=\"return hs.expand(this)\">"; - html += "<img src=\"/ViewImage.png?maxwidth=96&maxheight=96&code=" + item.code + "\" alt=\"" + title + "\" />"; + //html += "<img src=\"/ViewImage.png?maxwidth=96&maxheight=96&code=" + item.code + "\" alt=\"" + title + "\" />"; + html += "<img src=\"" + item.link + "\" width=\"96\" height=\"96\" alt=\"" + title + "\" />"; html += "</a>"; var name = title; while ((p = name.indexOf("/")) >= 0) { name = name.substring(p + 1); } |
