Loading the content before hide preloader - loading

I am facing a problem with my preloader. The below is the url.
http://aceklouds.com/bimtec-wp/?page_id=9
In this preloader is not loading first. The content is loading first and then after fraction of seconds, preloader is coming. I am not able to solve this. Can anyone help me with this ??
Thanks in advance.

I have hidden the body before loading and then revealed it. Its working now.

Related

Codeigniter - Views stuck while loading

Few of my views are stuck while loading, browser shows loading but it never loads.
Any idea?
Thanks,
Adil
You have a syntax error in your view. Check the apache log and/or enable error reporting.

Part of background image showing below footer - Help please

I created a custom page for my ecommerce store and I noticed that part of my background image is showing below my footer. It is only happening on this page so I assume there is something wrong with my new page. Anybody have any answers as to why this is happening? Thank you!
Here's the page... http://www.mmatopsupplies.com/brands/
I didn't investigate long enough to see why it's happening, but a quick fix is adding the following css to your footer.
#ContainerFooter {
margin-bottom:-20px;
}
Alternatively, you could add the css to your .container.footer class. Hope that helps!

Error "CKEditor" is undefined for IE users

In one of our projects users get an error "CKEditor is undefined" from time to time if they working with IE for quite some time and than load an XPage with the CKEditor. The error occurs direct after loading the page before the user can interact with it.
It looks like there might be a problem with caching. With a fresh start of IE the problems goes away.
CKEditor is an object to access the CKEditor on the page. So I guess the browser try to call a method but the object has not been loaded yet.
Has anybody experienced the same problem? Maybe also a solution?

CakePHP Page Occasionally Losing Layout - Help?

I have a CakePHP site whose homepage is cached for 10 minutes at a time using Cake's default options. However I've been alerted that "every once in a while", once a day or so, it's losing the layout, just displaying the page content without the header, styling etc.
Removing the cached version and regenerating the page apparently fixes the problem. But why would/could this be happening in the first place? I can't say I've seen it happen myself (in any of my CakePHP projects) but does anyone else have any experience of this, or any ideas of ways to fix? Much appreciated!
EDIT: Looking at a broken cached home.php file compared to a working cache file, I've spotted this line:
$controller->layout = $this->layout = 'ajax'; //broken
$controller->layout = $this->layout = 'default'; //working
This seems like a bit of a breakthrough. I guess that sometimes the page is being called by an Ajax request, and then being cached in that format until the cache expires. Anyone know why this might be happening (I don't think we're trying to call the homepage via Ajax anywhere, and we don't even have an ajax layout!) and if there's anything we can do to stop it?
Are you sure no ajax requests are interfering with your code/request?
We had a nightmare issue recently where cake was not rendering the layout on back/forward browser clicks. See here: CakePHP no layout on back and forward button
It may also help to look into the cake request cycle (http://book.cakephp.org/2.0/en/getting-started/a-typical-cakephp-request.html) and narrow down when in the request (and where) the error is occurring, although I dunno how you would reproduce it :)
Hope you figure it out!
Also, if you have any errors in your view, sometimes it won't load the layout. It will just spit out the view until the point where it experienced the error. Perhaps the error is not in displaying your layout, but some odd circumstance where you are generating an error with a Helper.

IE8 issue with loading FLASH. SWF loads and renders correctly on initial load, but on any subsequent refresh it fails to load

I need some help? Anyone experience this problem before with IE8 FLASH bug? Can not get this to work on all subsequent refresh to the flash. I have a flash piece which simply renders only on the first initial load. After that, if i refresh or visit the page, it does not load correctly. It seems I am having this problem with the swf only on subsequent loading of the page or whenever a refresh happens. Can you offer any ideas or services to help?
I have seen, on a number of occasions, issues like this occurring due to logical errors with pre-loaders.
Do you have a pre-loader?
If you do, how is it determining if the movie is loaded? Are you expecting a particular event to fire, which might have fired before you listen for it? Can you test to see if the movie is already loaded, before going into the preloader?
Hopefully you have a preloader... otherwise this answer is useless.

Resources