CLS Ad Slot

Version 1.1.0 Stable

Joomla! 5.4 Joomla! 5.5 Joomla! 6.0 Joomla! 6.1 Joomla! 6.2 PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5

Released on: Friday, 27 November 2026
Maturity Stable
Released on Friday, 27 November 2026
Viewed 0 times

Release notes

What's new

This release makes CLS Ad Slot lighter and more reliable, and fixes a problem that could hide ads below the fold when lazy loading was enabled. We recommend it for all users.

  • Nothing loaded on pages without ads. CLS Ad Slot's CSS and JavaScript, and the AdSense script, are now only added to pages that contain an ad slot.
  • Ad slots added after the page loads are detected automatically, whether they come from infinite scrolling, AJAX content or JCH Optimize's Reduce DOM. Developers can also call ClsAdSlot.scan() or send the cls-ad-slot:scan event.
  • Space is reserved correctly for every ad type. In-feed and In-article slots now use the Desktop, Tablet and Mobile min heights, and fixed-size slots reserve exactly the ad's height instead of the default responsive height.
  • The debug bar is private. It is now shown only to logged-in users who can manage CLS Ad Slot, never to visitors.
  • Fixed: with lazy loading, ads below the fold could be collapsed or replaced by the ad-blocker fallback as if AdSense were blocked.
  • Fixed: In-article ads now appear exactly every n paragraphs, including near the end of long articles.
  • Fixed: the In-Article and In-Feed Injectors no longer fail when the interval is set to 0 or when a module of another ad type is first in their position, and an injector that shows the same module more than once no longer creates duplicate element ids.
  • New user guide covering setup, every setting, layout shift, troubleshooting and a developer reference. The changelog is also now shown in Joomla's Manage Extensions.

See the changelog for the full list of fixes.

Developed and tested on up to PHP 8.5.13 and Joomla 6.2.1

Changelog

New features

  • Ad slots added to the page after it loads (infinite scrolling, AJAX content, JCH Optimize's Reduce DOM) are detected automatically
  • In-feed and In-article slots reserve space with the Desktop, Tablet and Mobile min heights
  • JavaScript API ClsAdSlot.scan() and the cls-ad-slot:scan event for scripts that insert ad slots

Noteworthy changes

  • CSS, JavaScript and the AdSense script are only loaded on pages that contain an ad slot
  • Debug bar is only shown to logged-in users who can manage CLS Ad Slot

Bug fixes

  • [HIGH] With lazy loading, ads below the fold were collapsed or replaced by fallback content as if blocked
  • [LOW] Broken link to the component in the CLS Ad Slot module description
  • [LOW] Duplicate element ids when an injector showed the same module more than once on a page
  • [LOW] Injector plugins failed when a module of another ad type was first in the injector position
  • [LOW] Injector plugins failed when the interval was set to 0
  • [LOW] Permissions in access.xml referenced the wrong component
  • [MEDIUM] Fixed-size slots reserved the default responsive height instead of the ad's height
  • [MEDIUM] In-article ads drifted from the paragraph interval and were skipped near the end of long articles
  • [MEDIUM] Width and Height fields shown for In-feed and In-article ads were ignored

View files

Version 1.0.1 Stable

Joomla! 5.0 Joomla! 5.1 Joomla! 5.2 Joomla! 5.3 Joomla! 5.4 Joomla! 6.0

Released on: Saturday, 28 March 2026
Maturity Stable
Released on Saturday, 28 March 2026
Viewed 0 times

Release notes

What's new

This is a bug fix release to fix issue with Configuration preset module not added to dashboard on install

Developed and tested on up to PHP 8.5.3 and Joomla 6.1.0-alpha3

Changelog

Bug fixes

  • [HIGH] Fix issue with Configuration preset module not added to Dashboard.

View files