Custom javascript not always running, performance issue?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/16/2011 7:15:33 PM
Gravatar
Total Posts 39

Custom javascript not always running, performance issue?

Hi,

The site I am working on uses some custom javascript to create a three column layout for a product list. Available here on the test site:
http://rav.dfine.com.au/gadgets.aspx

The script works consistently on my dev server. When I loaded the website to the test server I have found that the script runs

  • only on page re-load under Chrome
  • never on IE8
  • always on Firefox

 

Is there a more efficient way of loading the js file? I have I missed some mojoportal optimization options?

Any ideas appreciated.

 

Cheers,
Leah

 

1/19/2011 9:29:01 PM
Gravatar
Total Posts 39

Re: Custom javascript not always running, performance issue?

I have removed the custom script for now. I was including it in the layout master. I had tried various positions in the files (before or after the CSS, and at the end of the page)

Instead of the javascript we are using CSS to simulate the styling. It is not the preferred solution.

Somethings I might try later are to

  • compress all the custom javascript
  • zip the custom javascript
  • store the custom javascript on a separate subdomain so it might down load at the same

I will post an update if I get it sorted.

 

You must sign in to post in the forums. This thread is closed to new posts.