Cari Bantuan

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Pelajari Lebih Lanjut

Javascript not loading in FF, but works fine in IE, Chrome, Opera, and Mobile devices

  • 3 balas
  • 6 memiliki masalah ini
  • 1 kunjungan
  • Balasan terakhir oleh cor-el

more options

On this page, javascript menus (two of them) often do not load. If I click on Ctrl+F5 they may load on the 2nd attempt. This Page works well in IE, Chrome, Opera and mobile browsers, but not in FF. I have cleared the cache in FF by going to options, and have also worked with add-ons and made plug-ins to "Ask to Activate" . This problem persists...

The javascript menu bars sometimes do not show at all, or other times will appear, but have empty menu elements (the menu options do not show at all).

http://www.consultapedia.com/international/international_marketing/intl_mrktg_skill101.htm

I have included a screenshot of how they (do not) appear in FF. Also another screenshot of how they do appear in other browsers, or after I click Ctrl+F5 in FF.

On this page, javascript menus (two of them) often do not load. If I click on Ctrl+F5 they may load on the 2nd attempt. This Page works well in IE, Chrome, Opera and mobile browsers, but not in FF. I have cleared the cache in FF by going to options, and have also worked with add-ons and made plug-ins to "Ask to Activate" . This problem persists... The javascript menu bars sometimes do not show at all, or other times will appear, but have empty menu elements (the menu options do not show at all). http://www.consultapedia.com/international/international_marketing/intl_mrktg_skill101.htm I have included a screenshot of how they (do not) appear in FF. Also another screenshot of how they do appear in other browsers, or after I click Ctrl+F5 in FF.

Solusi terpilih

Hmm, there's a lot of content inserted by scripts in this page after a delay.

Firefox has several optimizations to speed redisplaying pages from cache that can malfunction under certain circumstances. For example, redisplaying a page using the Back button will not necessarily trigger an "onload" event in the page. This article describes how to work around this for web developers: https://developer.mozilla.org/Firefox/Releases/1.5/Using_Firefox_1.5_caching

For end users, this is a difficult problem to solve. A partial fix may be the following:

(1) In a new tab, type or paste about:config in the address bar and press Return/ Enter. Click the button promising to be careful.

(2) In the search box above the list, type or paste sess and pause while the list is filtered

(3) Double-click the browser.sessionhistory.max_total_viewers preference and change the value from -1 to 0 (that's a zero).

(Please don't change any other similar-sounding settings to 0 or you may disable Firefox's ability to save/restore your open windows and tabs.)

Then reload the problem page and trying navigating away and back to see whether the inserted content is preserved.

There might be a slight performance penalty for this change, but you probably won't notice it. Firefox will still used cached files, it will just reassemble the page in a slightly different way that often works around this issue.

Does that make any difference for you on that site?

Baca jawaban ini dalam konteks 👍 0

Semua Balasan (3)

more options

These are the screenshots. My apologies, but they did not show in my prior post ...

more options

Solusi Terpilih

Hmm, there's a lot of content inserted by scripts in this page after a delay.

Firefox has several optimizations to speed redisplaying pages from cache that can malfunction under certain circumstances. For example, redisplaying a page using the Back button will not necessarily trigger an "onload" event in the page. This article describes how to work around this for web developers: https://developer.mozilla.org/Firefox/Releases/1.5/Using_Firefox_1.5_caching

For end users, this is a difficult problem to solve. A partial fix may be the following:

(1) In a new tab, type or paste about:config in the address bar and press Return/ Enter. Click the button promising to be careful.

(2) In the search box above the list, type or paste sess and pause while the list is filtered

(3) Double-click the browser.sessionhistory.max_total_viewers preference and change the value from -1 to 0 (that's a zero).

(Please don't change any other similar-sounding settings to 0 or you may disable Firefox's ability to save/restore your open windows and tabs.)

Then reload the problem page and trying navigating away and back to see whether the inserted content is preserved.

There might be a slight performance penalty for this change, but you probably won't notice it. Firefox will still used cached files, it will just reassemble the page in a slightly different way that often works around this issue.

Does that make any difference for you on that site?

more options

Does the width of the Firefox window has any affect on this?

Clear the cache and remove cookies only from websites that cause problems.

"Clear the Cache":

  • Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"

"Remove Cookies" from sites causing problems:

  • Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"