diff --git a/internal/gui/pageinline.go b/internal/gui/pageinline.go
index dac44038b..c04798b0e 100644
--- a/internal/gui/pageinline.go
+++ b/internal/gui/pageinline.go
@@ -5,9 +5,9 @@ import (
"encoding/base64"
"net/url"
"os"
- "regexp"
"strings"
+ "github.com/yetone/magpie/internal/lazyre"
"github.com/yetone/magpie/internal/plugin"
)
@@ -26,13 +26,13 @@ import (
// asset call), which carries the cookie.
var (
- inlineScript = regexp.MustCompile(`(?is)`)
- inlineLink = regexp.MustCompile(`(?is)]*>`)
- attrRel = regexp.MustCompile(`(?is)\brel\s*=\s*["']?\s*stylesheet\b`)
- attrHref = regexp.MustCompile(`(?is)\bhref\s*=\s*(?:"([^"]*)"|'([^']*)')`)
- attrType = regexp.MustCompile(`(?is)\btype\s*=\s*["']?\s*([^"'\s>]*)`)
- attrDefer = regexp.MustCompile(`(?is)\bdefer\b`)
- bodyClose = regexp.MustCompile(`(?i)