473,654 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do i make my background load 1st?

5 New Member
The code i am using is for my myspace, the problem is that i have alot of things on my myspace which makes the loading time sometimes quite slow. What i'm wondering is if there is any code i can use to make my background be the first thing loaded wen the page opens? If so could you tell me how to go about doing that plz.. Thnx, Ry :)
May 6 '07 #1
2 7971
AricC
1,892 Recognized Expert Top Contributor
The code i am using is for my myspace, the problem is that i have alot of things on my myspace which makes the loading time sometimes quite slow. What i'm wondering is if there is any code i can use to make my background be the first thing loaded wen the page opens? If so could you tell me how to go about doing that plz.. Thnx, Ry :)
How big is the background picture? You should try to keep background pics small. You can use javascript to preload images here is a link with info.
May 6 '07 #2
pbmods
5,821 Recognized Expert Expert
The only way that you could reliably do that would be to only put the body in your HTML and load the rest of the content dynamically (i.e., using AJAX / DOM) after the body loads.

In practice, this is ridiculously difficult, and it defeats the purpose of what you're trying to accomplish, since the people that visit your page will be much more interested in your content than your background.

If you had a dark background, and your text were white, then the text wouldn't be visible until the background image loaded (though the side effect of that is that, in the User's mind, the page would take a lot longer to load, since from his perspective, *NOTHING* loaded until your background did).
May 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
762
by: Drew D. Saur | last post by:
When working on a web site for my employer, I uncovered what appears to be an undocumented bug in Internet Explorer 5 & 6 for Windows in regard to a (perhaps uncommon?) integration of Flash scripting and CSS2 background imagery. I am hoping that someone out there can help me identify what steps I might take to remedy this situation. Perhaps it is something that Macromedia might be able to do something about, since getting IE fixed is...
8
3756
by: Ron Holmes | last post by:
I want to place a background image on a windows form. Is there a way to prevent the image from Tiling without using an image box resized to the size of the form? I am using Visual Studio 2003 .NET. This is an easy thing to do in VB6.
1
1708
by: Christophe Candas | last post by:
Hye, You will find here under a script which will load a picture in a layer , picture depending on the cursor position. Everything's ok until the line: document.getElementById('zoom').style.background="url('chemin image.gif')"; which doesn't work. The script works (indication in the status barre) but the image is not loaded in the layer... I'm quiet sure it's a problem of url syntaxe but I can't find it ???
6
2482
by: Stephen Cook | last post by:
Having worked through the problems around enabling the document function using an XmlUrlResolver I started work on building a useful class to hide the intricacies. Trying to generalise the process I've hit a snag. How do I resolve multiple external references? The transform method on a stylesheet only takes one resolver, not an array Stephen
10
2893
by: Richard Steele | last post by:
Can anyone help me I am developing an application runs on a PC (client) only. For graphical reasons it was decided that the content would be displayed in a Browser that is embedded in a Windows Forms application (VS net 2003) c# I have a Windows Form that uses a webbrowser (AxWebBrowser) )to display html derived from internal classes that builds data from a database. The HTML displays correctly. The HTML is built at runtime and the...
8
9264
by: Matt | last post by:
I've been searching around for a simple way to display a background image in my MDI form's client area. I want to be able to load the image from file on start up and have it resize as the MDI form is resized. It's the resizing part that I am having trouble with. I've seen a few old posts that point in the right direction but nothing simple. I wondered if they has been any new ideas I have missed.
7
10047
by: John J. Hughes II | last post by:
I have a DataGridView with a TextBoxColumn. I setting the data source to a List<stringvalue in a static class. The list is filled from a background thread. So far all is fine and it works great, at least on my system. The reason I am doing this is some customers are pulling from VPN connections which are slow. This allows the list of rows in the data grid to appear a little quicker while the list which are not used as soon load in...
1
1436
by: Jim in Arizona | last post by:
I created a public application based variable not within any procedure, like so: Partial Class lobbytimes_lobbytimes Inherits System.Web.UI.Page Public BackgroundImage As String Protected Sub Page_Load(ByVal ..)
3
4022
by: salmobytes | last post by:
Every img tag (<img src="xxx.jpg">) in the html source represents a separate GET roundtrip between client and server, no? What about background images in css? I'm starting to see more and more designs--coming from the graphics design people--that call for ever increasing numbers of repeat-x or repeat-y sliver-gradients as div backgrounds. Does each such background image require a separate GET to the server?
9
8006
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have a MDI Container Form, with one label control on the Background of this container form. When I now open a child form, this form is behind the label ... and this looks ugly ... :-)) When I set the label with "SendToBack", it completely disapears. I also tried to set the child form like "BringToFront" but this also does not help.
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8594
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.