To load Tour module's scripts on demand

Created on 30 May 2017, over 7 years ago
Updated 5 May 2024, 7 months ago

Problem/Motivation

The Tour module enabled by default for standard installation profile. However, there's 99.9% time we never use it. It loaded 13KB + 4KB scripts on each page affected the parser performance and download page speed on slow devices and network.

** Probably, if we can, we should defer the Drupal.tour.views.ToggleTourView initial also. This step requires a little bit more discussion I believe, we can split it into another issue.

Proposed resolution

To load the script on demand, for example, to load script via AJAX on toggle tour button.

Remaining tasks

- Patch

πŸ“Œ Task
Status

Closed: outdated

Version

2.0

Component
TourΒ  β†’

Last updated 1 day ago

Created by

πŸ‡­πŸ‡°Hong Kong droplet

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024