Make WordPress Core

Opened 8 years ago

Closed 14 months ago

#46242 closed enhancement (maybelater)

Heartbeat

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

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
14 months ago

  • Milestone Awaiting Review
  • Resolution → maybelater
  • Status new → 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.