Skip to content

Bootstrap 5 carousel will not autoplay if added to the DOM after page load. #40833

Open
@Kembreg1405

Description

@Kembreg1405

Prerequisites

Describe the issue

Using ajax, we add the carousel html to the page, after the page has been loaded.
The carousel does not autoplay.

Reduced test cases

Add to the bootstrap documentation page the steps to have the carousel autoplay when the html is inserted after pageload.

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v5.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To analyze

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions