• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 536
  • Last Modified:

domready problem in internet explorer, its taking too much time

Hi all,

I have some JavaScript which i have developed using mootools1.2.

I have attached the code.

I have used the domready event to assign the different events to the elements.

Problem is the it creating problem in Internet Explorer.

Not creating problem with my code nor and error occurring.

But its take too much time to complete the loading of the page.

If i remove the code from page then its works fast in IE.

I have change the domready to onload but no effects.

So I am here to get some guideline regarding using the domready or onload or to optimize my code.

Hope i am pretty clear to you all.

Thanks
Addy
window.addEvent('domready',function(){
	var mySlide = new Fx.Slide('top-panel',{mode: 'horizontal'});
	$('image_li').addEvent('click', function(e){

		$('menuopenar').setStyle('display','none');
		$('menuopenar').setStyle('visibility','hidden');
		mySlide.slideIn();
		e.stop();		
	});
	
	
	var parent = $('top-panel').getParent('div');
	parent.setStyle('float','left');
	mySlide.slideOut();
	$('image_li').addClass('menuclose');

	$('close_link').addEvent('click',function(e){
		e.stop();
		mySlide.slideOut();
		$('menuopenar').setStyle('display','block');
		var d= function(){$('menuopenar').fade(1);}.delay(500);
	});
});

Open in new window

0
Avinash Zala
Asked:
Avinash Zala
  • 3
  • 2
1 Solution
 
StealthyDevCommented:
I hope domready / onload is not a problem in IE.. I hope some other FX you have used is the problem.

Try reducing some scripts like Fx.Slide and see the performance.

Try to move the onload to a button click and find the time taken?

Regards.
0
 
Avinash ZalaWeb ExpertAuthor Commented:
yes when i remove the FX slide code then it works fine..

Thanks
Addy
0
 
StealthyDevCommented:
Ok, now try FX slide in a button click and check the performance. Iff it is slow again, the cause would be the div element's objects. Try to reduce the amount of objects and test again.

Regards.
0
 
Avinash ZalaWeb ExpertAuthor Commented:
Thx for your help,

Your comments is not actually a solution, but it leads me to my solution.

Thanks Again
Addy
0
 
Avinash ZalaWeb ExpertAuthor Commented:
hi,
You comments leads me to my solution
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now