laravel-page-speed icon indicating copy to clipboard operation
laravel-page-speed copied to clipboard

Javascript no longer works with source URL

Open steinger opened this issue 3 years ago • 7 comments

After upgrading to version 2.0.0, Javascript no longer works with source URL, for example Google Adsense

Original:

</footer>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</body>
</html>

laravel-page-speed 2.0.0:

</footer><script async src=</body></html>

Tested with different browsers.

steinger avatar Mar 03 '21 20:03 steinger

ping @lucasMesquitaBorges

joaorobertopb avatar Mar 20 '21 14:03 joaorobertopb

Thanks for reporting @steinger ! I'll check it

lucasMesquitaBorges avatar Mar 25 '21 00:03 lucasMesquitaBorges

I have the same issue. This happens for all inline scripts, where no src is present: Original:

<script type="text/javascript">

After:

<script async src=<script type=text/javascript>

craftisan avatar Apr 19 '21 02:04 craftisan

any fix for this issue?

wyamout avatar Mar 15 '22 04:03 wyamout

I just removed the package, I couldn't get it fixed.

souhailkaoussi-pro avatar Sep 19 '22 20:09 souhailkaoussi-pro

I've seen this happen with srcs from external links, and specifically removing its "https://" doesn't cause the error anymore, but now the link won't work properly. I don't know if anyone has a solution to this problem.

vsmartcode avatar Mar 23 '23 06:03 vsmartcode

To be honest with you, I just removed the entire package for my laravel app to work properly.

souhailkaoussi-pro avatar Apr 04 '23 00:04 souhailkaoussi-pro