From 22f86df89412527147b913e6700cb2141d99434b Mon Sep 17 00:00:00 2001 From: BrainFooLong Date: Sat, 6 Apr 2024 12:25:14 +0200 Subject: [PATCH] added CustomElementButton.php performance test page --- .../src/View/Misc/CustomElementButton.php | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 appdata/modules/FramelixTests/src/View/Misc/CustomElementButton.php diff --git a/appdata/modules/FramelixTests/src/View/Misc/CustomElementButton.php b/appdata/modules/FramelixTests/src/View/Misc/CustomElementButton.php new file mode 100644 index 0000000..319dde5 --- /dev/null +++ b/appdata/modules/FramelixTests/src/View/Misc/CustomElementButton.php @@ -0,0 +1,57 @@ +action === 'more-buttons') { + for ($i = 5000; $i < 10000; $i++) { + ?> + + Btn + + showContentBasedOnRequestType(); + } + + public function showContent(): void + { + ?> +

Performance Test when displaying 5000 buttons and loading 5000 more dynamically

+ + + Btn + + +
+ +