Make WordPress Core

Opened 7 years ago

Closed 5 months ago

#46242 closed enhancement (maybelater)

Heartbeat

Reported by: mireillesan's profile mireillesan Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0.3
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

While Heartbeat has its merits, on some pages it isn't fully needed and it's also too hard to disable it properly.

Would it be possible to add extra arguments to register_post_type with options to enable/disable heartbeat (and depending scripts (e.g. autosave, wp-remove-post-lock))?

If it's not possible at least load heartbeat related files at the end of a page load (footer). With query monitor I noticed these ajax calls are loaded first before anything else.

Kind regards,
Kiarashi

Change History (1)

#1 @SirLouen
5 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

There have been a couple of changes in the past few years.

If it's not possible at least load heartbeat related files at the end of a page load (footer). With query monitor I noticed these ajax calls are loaded first before anything else.

The heartbeat javascript is not running in the header anymore

Given that this report has not had much traction or similar reports came in, for the past few years, it seems that its a too niche improvement to be implemented, more likely to be content for a plugin than part of core. You can disable heartbeat.js per CPT with some code though.

Note: See TracTickets for help on using tickets.