Reloading when ajax events are triggered

Created on 27 March 2024, 8 months ago

Problem/Motivation

Incorrect behavior of ad blocks and views when certain ajax events occur on the page, for example when loading content through Views Infinite Scroll.

Steps to reproduce

1. Install and configure SimpleAds (displaying one ad when the page loads)
2. Install and enable Twig Tweak
3. Install and enable Views Infinite Scroll
4. Display some content through views with a pager like Infinite Scroll
5. Embed a twig template code like {{ drupal_view('simpleads', 'ads_example') }}, for example, inside: {% if loop.index == 1 %} {{ drupal_view('simpleads', 'ads_example') }} {% endif %} ...
6. Open the views page and observe the ads. All ads (including those loaded previously) will randomly refresh when new content is loaded.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇷🇺Russia shevgeny Moscow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024