aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes/Debugging/Resource/Stylesheet.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/classes/Debugging/Resource/Stylesheet.php')
-rw-r--r--include/classes/Debugging/Resource/Stylesheet.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/classes/Debugging/Resource/Stylesheet.php b/include/classes/Debugging/Resource/Stylesheet.php
new file mode 100644
index 0000000..7d9c8d8
--- /dev/null
+++ b/include/classes/Debugging/Resource/Stylesheet.php
@@ -0,0 +1,14 @@
+<?php
+namespace Debugging\Resource;
+
+class Stylesheet extends \BigPipe\Resource\Stylesheet {
+ public function __construct($customID = NULL, $resourceURL) {
+ parent::__construct(...func_get_args());
+
+ foreach(['INIT', 'LOAD', 'DONE'] as $phase) {
+ $code = 'console.log("PhaseDoneJS for Stylesheet %%c#%s%%c: %s", "color:#4169E1", "color:inherit")';
+ $this->addPhaseDoneJS(constant("self::PHASE_$phase"), sprintf($code, $this->getID(), $phase));
+ }
+ }
+}
+?> \ No newline at end of file