8
24
Fork
You've already forked nuMatrix
4

Option to reload certain assets (CSS/Images) in the UI #1140

Closed
opened 2023年11月07日 17:14:17 +01:00 by arek · 8 comments
Owner
Copy link

Submitted by: hoshsadiq
Submitted at: 2020年01月15日T14:58:59Z


Prerequisites

  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
  • This is not a support issue or a question
    • Support issues and questions are handled at /r/uMatrix
  • I tried to reproduce the issue when...
    • uMatrix is the only extension
    • uMatrix with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uMatrix
  • I checked the documentation to understand that the issue I report is not a normal behavior
  • I used the logger to rule out that the issue is caused by my ruleset

Description

It would be nice to be able to reload certain assets without reloading the whole page. I'm thinking anything that can safely be reloaded such as images and CSS (JavaScript will have many implications).

The reason for this that often when using uMatrix I simply allow CSS/Images for one or more hosts because otherwise the page loads incorrectly. Quite often this is enough to get the page running, however, it requires a full page reload once the domains have been whitelisted (temporary or otherwise).

It would be nice if individual reload buttons are added for what some of these resources, this includes frames, images, CSS and media. All of these can potentially be reloaded without reloading the whole page and without breaking anything.

A specific URL where the issue occurs

N/A

Steps to Reproduce

N/A

Ruleset

N/A

Supporting evidence

N/A

Your environment

N/A

Submitted by: [hoshsadiq](https://github.com/hoshsadiq) Submitted at: [2020年01月15日T14:58:59Z](https://github.com/uBlockOrigin/uMatrix-issues/issues/215) ----- <!-- Do NOT delete this template or any part of it when submitting your issue --> ### Prerequisites <!-- Check the appropriate boxes after you submit your issue --> <!-- Speculated performance issues will be marked as invalid and closed if they do not come with actual profiling data + analysis supporting the claim --> - [x] I performed a cursory search of the issue tracker to avoid opening a duplicate issue - Your issue may already be reported. - [x] I also searched the existing issues at <https://github.com/gorhill/uMatrix/issues> - [x] This is not a support issue or a question - Support issues and questions are handled at [/r/uMatrix](https://old.reddit.com/r/uMatrix/) - I tried to reproduce the issue when... - [ ] uMatrix is the only extension - [ ] uMatrix with default lists/settings - [ ] using a new, unmodified browser profile - [x] I am running the latest version of uMatrix - [x] I checked the [documentation](https://github.com/gorhill/uMatrix/wiki) to understand that the issue I report is not a normal behavior - [ ] I used the logger to rule out that the issue is caused by my ruleset ### Description It would be nice to be able to reload certain assets without reloading the whole page. I'm thinking anything that can safely be reloaded such as images and CSS (JavaScript will have many implications). The reason for this that often when using uMatrix I simply allow CSS/Images for one or more hosts because otherwise the page loads incorrectly. Quite often this is enough to get the page running, however, it requires a full page reload once the domains have been whitelisted (temporary or otherwise). It would be nice if individual reload buttons are added for what some of these resources, this includes frames, images, CSS and media. All of these can potentially be reloaded without reloading the whole page and without breaking anything. ### A specific URL where the issue occurs N/A ### Steps to Reproduce N/A ### Ruleset N/A ### Supporting evidence N/A ### Your environment N/A
Author
Owner
Copy link

Submitted by: uBlock-user
Submitted at: 2020年01月15日T16:15:16Z


All of these can potentially be reloaded without reloading the whole page and without breaking anything.

Images/media/CSS/script are the resources of the document, only document can call them and users can only call the document, you can't call these resources directly.

Frames on the other hand can be called directly without reloading the entire page.

Submitted by: [uBlock-user](https://github.com/uBlock-user) Submitted at: [2020年01月15日T16:15:16Z](https://github.com/uBlockOrigin/uMatrix-issues/issues/215#issuecomment-574733386) ----- > All of these can potentially be reloaded without reloading the whole page and without breaking anything. Images/media/CSS/script are the resources of the document, only document can call them and users can only call the document, you can't call these resources directly. Frames on the other hand can be called directly without reloading the entire page.
Author
Owner
Copy link

Submitted by: hoshsadiq
Submitted at: 2020年01月15日T16:23:30Z


So is uMatrix unable to for example force load an image after it has blocked already? If that is the case in my opinion there's no point in adding such a feature for just frames especially considering how infrequent frames are used in comparison with other resources.

Submitted by: [hoshsadiq](https://github.com/hoshsadiq) Submitted at: [2020年01月15日T16:23:30Z](https://github.com/uBlockOrigin/uMatrix-issues/issues/215#issuecomment-574737265) ----- So is uMatrix unable to for example force load an image after it has blocked already? If that is the case in my opinion there's no point in adding such a feature for just frames especially considering how infrequent frames are used in comparison with other resources.
Author
Owner
Copy link

Submitted by: uBlock-user
Submitted at: 2020年01月15日T16:27:12Z


So is uMatrix unable to for example force load an image after it has blocked already?

(削除) Browser itself can't reload an individiual image/css/media/script on demand. Right click on any image and look for "Reload image" option. You won't find it. There's no API in browser itself. (削除ここまで) Only possible with iframes.

Edit: "Reload image" does appear but only if you block images/media by size via uBO.

Submitted by: [uBlock-user](https://github.com/uBlock-user) Submitted at: [2020年01月15日T16:27:12Z](https://github.com/uBlockOrigin/uMatrix-issues/issues/215#issuecomment-574738937) ----- > So is uMatrix unable to for example force load an image after it has blocked already? ~~Browser itself can't reload an individiual image/css/media/script on demand. Right click on any image and look for "Reload image" option. You won't find it. There's no API in browser itself.~~ Only possible with iframes. Edit: "Reload image" does appear but only if you block images/media by size via uBO.
Author
Owner
Copy link

Submitted by: gorhill
Submitted at: 2020年01月15日T16:33:34Z


Browser itself can't reload an individiual image/css/media/script on demand

uBO has this feature, you can click to force the reload of images/videos that were blocked due to their size. For CSS I would need to experiment to find out if I can force a reload of <link rel="stylesheet" ...> elements (by possibly toggle the href attribute),

Submitted by: [gorhill](https://github.com/gorhill) Submitted at: [2020年01月15日T16:33:34Z](https://github.com/uBlockOrigin/uMatrix-issues/issues/215#issuecomment-574741956) ----- > Browser itself can't reload an individiual image/css/media/script on demand uBO has this feature, you can click to force the reload of images/videos that were blocked due to their size. For CSS I would need to experiment to find out if I can force a reload of `<link rel="stylesheet" ...>` elements (by possibly toggle the `href` attribute),
Author
Owner
Copy link

Submitted by: uBlock-user
Submitted at: 2020年01月15日T16:35:12Z


you mean No large media elements option ?

Submitted by: [uBlock-user](https://github.com/uBlock-user) Submitted at: [2020年01月15日T16:35:12Z](https://github.com/uBlockOrigin/uMatrix-issues/issues/215#issuecomment-574742715) ----- you mean `No large media elements` option ?
Author
Owner
Copy link

Submitted by: hoshsadiq
Submitted at: 2020年01月17日T22:00:11Z


uBO has this feature, you can click to force the reload of images/videos that were blocked due to their size. For CSS I would need to experiment to find out if I can force a reload of <link rel="stylesheet" ...> elements (by possibly toggle the href attribute),

Just had a look, and I'm not sure of having it automatic like that. Often I accidentally click the wrong domains to white list, and subsequently disable it again before refreshing. Maybe it's me just being clumsy, but I just a lot of users will be in a similar boat. If it is just me, then maybe having it automatic like that is better (I'll get used to it).

Submitted by: [hoshsadiq](https://github.com/hoshsadiq) Submitted at: [2020年01月17日T22:00:11Z](https://github.com/uBlockOrigin/uMatrix-issues/issues/215#issuecomment-575811719) ----- > uBO has this feature, you can click to force the reload of images/videos that were blocked due to their size. For CSS I would need to experiment to find out if I can force a reload of `<link rel="stylesheet" ...>` elements (by possibly toggle the href attribute), Just had a look, and I'm not sure of having it automatic like that. Often I accidentally click the wrong domains to white list, and subsequently disable it again before refreshing. Maybe it's me just being clumsy, but I just a lot of users will be in a similar boat. If it is just me, then maybe having it automatic like that is better (I'll get used to it).
arek added this to the v1.0 milestone 2026年06月19日 10:23:34 +02:00
arek added this to the (deleted) project 2026年06月19日 10:25:42 +02:00
arek added this to the v1.0 project 2026年06月19日 10:29:27 +02:00
Author
Owner
Copy link

Can be done easily for css and images. Bit trickier for media, but still doable on a best-effort basis. frame/iframe probably won't happen. Maybe could add auto reload, or at least highlight the reload button when css/images have been unblocked?

Can be done easily for css and images. Bit trickier for media, but still doable on a best-effort basis. frame/iframe probably won't happen. Maybe could add auto reload, or at least highlight the reload button when css/images have been unblocked?
Author
Owner
Copy link

Works quite well for CSS. Images depend on whether they actually depend on JS.

Works quite well for CSS. Images depend on whether they actually depend on JS.
arek 2026年06月29日 12:37:12 +02:00
  • closed this issue
  • added the
    done
    label
Sign in to join this conversation.
No Branch/Tag specified
master
dev
v0.1.2
v0.1
0.0.0.8b
0.0.0.7b
0.0.0.5b
0.0.0.4b
0.0.0.3b
0.0.0.2b
0.0.0.1b
1.4.3b0
1.4.2
1.4.1b6
1.4.1b5
1.4.1b4
1.4.0
1.3.17b2
1.3.17b1
1.3.16
1.3.14
1.3.12
1.3.10
1.3.8
1.3.6
1.3.4
1.3.3b9
1.3.3b8
1.3.2
1.3.0
1.2.0
1.1.20
1.1.18
1.1.16
1.1.14
1.1.12
1.1.11b0
1.1.10
1.1.8
1.1.7rc0
1.1.7b0
1.1.6
1.1.4
1.1.0
1.0.0
0.9.3.6
0.9.3.4
0.9.3.3
0.9.3.2
0.9.3.1
0.9.3.0
0.9.2.1
0.9.2.0
0.9.1.2
0.9.1.1
0.9.1.0
0.9.0.1
0.9.0.0
0.8.1.4
0.8.1.3
0.8.1.1
0.8.1.0
0.8.0.1
0.8.0.0
0.8.0.0-rc.2
0.8.0.0-rc.1
0.8.0.0-rc.0
0.8.0.0-alpha.19
0.8.0.0-alpha.18
0.8.0.0-alpha.17
0.8.0.0-alpha.16
0.8.0.0-alpha.15
0.8.0.0-alpha.14
0.8.0.0-alpha.11
0.8.0.0-alpha.10
0.8.0.0-alpha.9
0.8.0.0-alpha.8
0.8.0.0-alpha.7
0.8.0.0-alpha.6
0.8.0.0-alpha.4
0.8.0.0-alpha.3
0.8.0.0-alpha.2
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
arek/nuMatrix#1140
Reference in a new issue
arek/nuMatrix
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?