Closed
Bug 66857
Opened 24 years ago
Closed 22 years ago
disabling javascript still loads javascript into cache.
Categories
(Core :: Layout, enhancement)
Core
Layout
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: bugs4hj, Assigned: darin.moz)
References
Details
(Whiteboard: [DUPEME?])
Attachments
(1 file)
659 bytes,
patch
|
Details | Diff | Splinter Review |
If you disable Javascript, then all external javascript are still loaded and put
into disk cache You may check this behaviour with about:cache, or with an
protocol analyzer, as I did. Can't external Javascripts being blocked with the
help of HTTP filtering. If you don't like Javascript to run for a site, why
should web-surfers still load those files, if they don't want to use them?
Used the correct Severity, for the first time ever, thanks Hakan!
Comment 1•24 years ago
|
||
Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: [RFE] disabling javascript still loads javascript. → [RFE] disabling javascript still loads javascript into cache.
Cache bugs to Gordon
Assignee: neeti → gordon
Target Milestone: --- → mozilla1.0
Assignee: gordon → darin
Component: Networking: Cache → Networking: HTTP
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla1.0 → mozilla1.0.1
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla1.0.1 → ---
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Component: Networking: HTTP → Layout
Summary: [RFE] disabling javascript still loads javascript into cache. → disabling javascript still loads javascript into cache.
Any chance this will be addressed? For what it's worth, IE 6 doesn't load
scripts if scripting is disabled. This is obviously more of an issue where
bandwidth is limited.
I used a different (and for me, simpler) approach to determining whether the
browser was requesting the script files: I looked in the server log.
A workaround: load scripts dynamically, using something like the following:
<script language="javascript" type="text/javascript">
document.write('<script language="javascript" src="path/script.js"
type="text/javascript"> <\/script>');
</script>
It's a little scary, but it works on IE 5+, Mozilla 1.4, and Opera 7.11. (I
haven't tried earlier versions of Mozilla and Opera.)
The workaround mentioned above also works with Mozilla 1.0, 1.1, 1.2.1, and 1.3.
Assignee | ||
Updated•22 years ago
|
Whiteboard: [DUPEME?]
![]() |
||
Comment 7•22 years ago
|
||
It would be trivial to do a IsScriptEnabled check in the <script> node before
attempting to execute or load scripts... so just change:
648 if (mIsEvaluated || mEvaluating || !mDocument || !mParent) {
649 return;
650 }
To:
648 if (mIsEvaluated || mEvaluating || !mDocument || !mParent ||
!mDocument->IsScriptEnabled()) {
649 return;
650 }
r=sicking on that :)
Comment 9•22 years ago
|
||
sr=jst
![]() |
||
Comment 10•22 years ago
|
||
![]() |
||
Comment 11•22 years ago
|
||
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 12•21 years ago
|
||
*** Bug 219322 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•