Skip to content

Conversation

@tairli
Copy link

@tairli tairli commented Apr 22, 2022

  • Allow control of non-ScriptTag scripts
  • Added display of non-Apps scripts

Added a checkbox to ignore whether the block URL is present in content_for_header.
This will allow delayed loading of non-scriptTag scripts.
For example, some URL loaded by App, or by another script, like Google Tag manager.

@mirceapiturca
Copy link
Owner

@tairli I like the idea!
Please let me have a look over the code and maybe this can go live next week.
Thanks

@yoyurec
Copy link

yoyurec commented Jul 23, 2023

any news?

@mohamedhaddi
Copy link

Hey @tairli, does this change include scripts injected by app embeds?

@tairli
Copy link
Author

tairli commented Nov 21, 2023

The initial concept allows you to block/delay scripts on your page which are loaded by JS.
The code controls creation of <script> elements in DOM.
It was limited to main Apps scripts, this change allows to control arbitrary scripts, but again, only if they are loaded by JS.
However if you have <script src="..."></script> in HTML, then this would not help.

@mohamedhaddi
Copy link

Thank you @tairli, got it.

@NebularNerd
Copy link

I added your additions to my code but so far have had no luck blocking any scripts. This is likely just the nature of how they are injected into the html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants