[PR #8093] fix: user-select style and pre-create iframe in embed.js #25923

Closed
opened 2026-02-21 20:30:04 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/8093

State: closed
Merged: Yes


  • Fixes the user-select style: Prevents the iframe element itself from being selected by adding the 'user-select: none' property to the CSS style. This ensures that users cannot accidentally select or highlight the iframe element within the embedded content.

  • Pre-creates the iframe: Adds functionality to pre-create the iframe when embed.js loads. This resolves the issue where the first click to open the iframe results in a delay, improving performance and user experience by ensuring the iframe is ready in advance.

**Original Pull Request:** https://github.com/langgenius/dify/pull/8093 **State:** closed **Merged:** Yes --- - **Fixes the user-select style**: Prevents the iframe element itself from being selected by adding the `'user-select: none'` property to the CSS style. This ensures that users cannot accidentally select or highlight the iframe element within the embedded content. - **Pre-creates the iframe**: Adds functionality to pre-create the iframe when `embed.js` loads. This resolves the issue where the first click to open the iframe results in a delay, improving performance and user experience by ensuring the iframe is ready in advance.
yindo added the pull-request label 2026-02-21 20:30:04 -05:00
yindo closed this issue 2026-02-21 20:30:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#25923