Skip to content

Interactive Video breaks with JS minification (SiteGround Optimizer) #7884

@amroland

Description

@amroland

The Interactive Video block does not work when the “Minify JavaScript Files” option is enabled in the SiteGround Speed Optimizer plugin. Neither the breakpoints nor the Required feature are working. The interactive progress bar does not start at all.
This issue does not occur with LiteSpeed’s similar JavaScript minification feature; everything works perfectly there.

Steps to Reproduce

  1. Install and activate SiteGround Speed Optimizer plugin
  2. Go to Speed Optimizer » Frontend » JAVASCRIPT settings and enable Minify JavaScript Files option.
  3. Add an Interactive Video block to a lesson (or post).
  4. View the lesson (or post) on the frontend.
  5. The Interactive Video block does not work. Neither the breakpoints nor the Required feature are working. The interactive progress bar does not start at all.

What I Expected

The Interactive Video block should work even when JavaScript minification is enabled.

What Happened Instead

The Interactive Video block stops working completely when JS minification is enabled in SiteGround Speed Optimizer. There is no problem with LiteSpeed's similar JS minification feature.

PHP / WordPress / Sensei LMS version

WordPress v6.9
PHP 8.2.30
Sensei LMS Version: 4.25.2 | Sensei Pro Version: 1.24.5

Additional context

  1. I have not yet tested all interactive Sensei features, but it is possible that other interactive blocks (e.g. Hotspot) are affected by the same issue.
  2. There could be a lot of SiteGround-hosted sites where enabling JS minification could cause this problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions