diff --git a/Plan/api/src/main/java/com/djrapitops/plan/delivery/web/ResourceService.java b/Plan/api/src/main/java/com/djrapitops/plan/delivery/web/ResourceService.java index acb52510f..97b394b69 100644 --- a/Plan/api/src/main/java/com/djrapitops/plan/delivery/web/ResourceService.java +++ b/Plan/api/src/main/java/com/djrapitops/plan/delivery/web/ResourceService.java @@ -73,19 +73,19 @@ public interface ResourceService { /** * Loaded before page contents. */ - HEAD, + PRE_CONTENT, /** - * Loaded after page contents. + * Loaded after library scripts. *

* Recommended for modifying the structure of the page or loading libraries. */ - BODY, + PRE_MAIN_SCRIPT, /** * Loaded after script execution. *

* Recommended for loading data to custom structure on the page. */ - BODY_END + AFTER_MAIN_SCRIPT } class Holder { diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/web/ResourceSvc.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/web/ResourceSvc.java index 533951e9f..182f59d82 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/web/ResourceSvc.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/web/ResourceSvc.java @@ -84,23 +84,23 @@ public class ResourceSvc implements ResourceService { return "Error: Given resource did not support WebResource#asString method properly and returned 'null'"; } - StringBuilder toHead = byPosition.get(Position.HEAD); + StringBuilder toHead = byPosition.get(Position.PRE_CONTENT); if (toHead != null) { html = StringUtils.replaceOnce(html, "", toHead.append("").toString()); } - StringBuilder toBody = byPosition.get(Position.BODY); + StringBuilder toBody = byPosition.get(Position.PRE_MAIN_SCRIPT); if (toBody != null) { - if (StringUtils.contains(html, "")) { - html = StringUtils.replaceOnce(html, "", toBody.toString()); + if (StringUtils.contains(html, " + + \ No newline at end of file diff --git a/Plan/common/src/main/resources/assets/plan/web/network.html b/Plan/common/src/main/resources/assets/plan/web/network.html index 433df0905..6181d2979 100644 --- a/Plan/common/src/main/resources/assets/plan/web/network.html +++ b/Plan/common/src/main/resources/assets/plan/web/network.html @@ -804,7 +804,7 @@ - - - -