Home

>

Tools

>

Ghost

>

Releases

>

5.89.6

Ghost Release: 5.89.6

Tag Name: v5.89.6

Release Date: 8/21/2024

Ghost LogoGhost

Open-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.

TL;DR

Ghost v5.89.6 fixes critical Safari editor performance issues

This patch release addresses a significant performance problem in the Ghost editor when working with HTML or Markdown cards in Safari browsers. The previous implementation caused CPU usage to spike dramatically, making the editor sluggish or unusable for some users. The fix changes how the secondary Lexical editor instance is hidden, resolving the performance bottleneck without affecting functionality.

Highlight of the Release

    • Fixed critical performance issue in Safari when editing posts with HTML or Markdown cards
    • Resolved high CPU usage problem caused by CodeMirror processing hidden elements
    • Improved editor responsiveness for Safari users

Migration Guide

No migration steps are required for this release. The update can be applied without any additional configuration changes or data migrations.

Upgrade Recommendations

This release is highly recommended for all Ghost installations, especially for sites where content creators use Safari browsers. The performance fix addresses a significant usability issue that could impact content creation workflows.

The update is a minor patch release with minimal changes, making it a low-risk upgrade that resolves an important performance problem.

Bug Fixes

Safari Editor Performance Fix

Fixed a critical performance issue in Safari browsers when editing posts containing HTML or Markdown cards. The previous implementation hid the secondary Lexical editor instance using CSS properties (width: 0, height: 0, and overflow: hidden), which caused CPU usage to spike dramatically. This was likely due to CodeMirror continuously processing the hidden element.

The fix implements a more Safari-friendly approach to hiding the secondary editor instance, preventing the excessive CPU usage while maintaining proper functionality.

Reference: PR #20806 addressing ONC-261

New Features

No new features were introduced in this patch release. This update focuses exclusively on fixing a performance issue in the editor when using Safari browsers.

Security Updates

No security fixes were included in this release.

Performance Improvements

Improved Safari Editor Performance

This release significantly improves editor performance in Safari browsers when working with HTML or Markdown cards:

  • Reduced CPU usage when editing posts with code-related cards
  • Eliminated performance bottlenecks caused by hidden CodeMirror elements
  • Improved overall responsiveness of the editor in Safari

The optimization specifically targets how hidden editor components are handled, preventing unnecessary processing of elements that aren't visible to the user.

Impact Summary

Ghost v5.89.6 delivers an important performance optimization for Safari users working with HTML or Markdown cards in the editor. The fix addresses a specific browser compatibility issue that was causing excessive CPU usage and editor slowdowns.

While this is a targeted fix for Safari users, it represents an important quality-of-life improvement for content creators who rely on this browser. The update ensures consistent editor performance across different browser environments, particularly when working with code-related content cards.

The change is isolated to the editor component and doesn't affect other aspects of Ghost functionality, making this a safe and recommended update for all installations.

Full Release Notes

  • 🐛 Fixed editor performance issues in Safari for posts with HTML or Markdown cards (#20806) - Ronald Langeveld

View the changelog for full details: v5.89.5...v5.89.6

Statistics:

File Changed3
Line Additions3
Line Deletions3
Line Changes6
Total Commits2

User Affected:

  • Safari users experiencing editor performance issues when working with HTML or Markdown cards will see significant performance improvements
  • Reduced CPU usage when editing posts containing code-related cards
  • Smoother editing experience without browser slowdowns or freezes

Contributors:

ronaldlangeveldgithub-actions[bot]