forked from Adleraci/adlerka.top
test inlining
This commit is contained in:
parent
3f410c5002
commit
03a2852f97
@ -30,6 +30,7 @@ function inlineScriptFromSrc($inputString) {
|
|||||||
|
|
||||||
$outputString = preg_replace_callback($pattern, function($match) {
|
$outputString = preg_replace_callback($pattern, function($match) {
|
||||||
$src = $match[1];
|
$src = $match[1];
|
||||||
|
echo $_SERVER['DOCUMENT_ROOT'] . '/' . $src;
|
||||||
$jsContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $src);
|
$jsContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $src);
|
||||||
|
|
||||||
// Minify the JavaScript content
|
// Minify the JavaScript content
|
||||||
|
Loading…
Reference in New Issue
Block a user