jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.x - (This is the current version!) => Bugs! => Topic started by: Viking DataForge on 26.11.2026 22:13:33

Title: jDownloads 4.1.9 – Layout Manager delays caused by remote preview image checks
Post by: Viking DataForge on 26.11.2026 22:13:33
Hello,

While investigating administrator performance in jDownloads 4.1.9, we identified another source of significant delays specifically affecting the Layout Manager.

**Environment:**
- Joomla 6.2.1
- jDownloads 4.1.9 Stable
- PHP 8.5.4
- Windows / Laragon local development environment

After correcting the external Help server request issue reported separately, the general jDownloads administrator navigation became almost instantaneous. However, the Layout Manager remained noticeably slower.

Further investigation identified the following:

**File:**
administrator/components/com_jdownloads/tmpl/templates/default.php

**Line 208:**

`if (JDownloadsHelper::url_check($layout_previews_url.$img)){`

This calls the url_check() function in JDownloadsHelper.php, which performs the following synchronous external request:

`$hdrs = @get_headers($url);`

Because this check is performed for individual layout previews, multiple external requests can delay the entire administrator page.

We tested replacing the automatic remote preview checks with clickable preview links, allowing the remote images to be retrieved only when explicitly requested.

The Layout Manager became almost instantaneous following this modification.

I would suggest using locally cached preview images, asynchronous preview loading, or displaying preview links without performing synchronous server-side availability checks.

This modification has been successfully tested on my local installation.

Hopefully this information will help improve performance in a future release.

Thank you for your work on jDownloads.
Title: Re: jDownloads 4.1.9 – Layout Manager delays caused by remote preview image checks
Post by: Arno on 30.11.2026 17:51:59
Hi Viking DataForge,
thank you for investigating this and identifying the relevant code. Synchronous external checks for individual preview images can indeed delay the Layout Manager, particularly when remote responses are slow.

Your comparison with preview links is useful. We'll review the reported calls and consider removing the blocking availability checks while preserving access to the previews.

We'll track this separately from the Help server issue you mentioned.