From de347e1f81c68d3e833c83e7a906fe80a4af28df Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 9 Dec 2017 11:48:23 +0100 Subject: [PATCH] Only send new Ticks on AJAX update THis reduces the overhead of re-sending huge amounts of HTML code to the frontend without any new data to display. --- includes/class-wpliveticker2.php | 12 ++++++++---- scripts/wp-liveticker2.js | 11 ++++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/includes/class-wpliveticker2.php b/includes/class-wpliveticker2.php index 2b29115..1f56ef3 100644 --- a/includes/class-wpliveticker2.php +++ b/includes/class-wpliveticker2.php @@ -179,8 +179,9 @@ class WPLiveticker2 { $output = '