D
D
Danik Grachev2013-12-10 11:49:51
css
Danik Grachev, 2013-12-10 11:49:51

What is the best way to make the element load outside of the visible parts of the page?

Situation: The
dropdown script is connected in the footer. When you hover over the button, a window pops up from the top of the page. There is quite a lot of information/animation and a number of other moving elements. During page loading/refreshing, you can see how this window is loaded in the center of the page, and only then disappears, which at times makes the user very nervous.
Challenge: What is the best way to make this element load outside of the visible parts of the page?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
V
Vasily Ostanin, 2013-12-10
@dfoster

Put on the root element of the window style="display:none;"This happens because of the delayed loading of css files.
Option 2: Load the content with AJAX and insert it into the page code on the first click.
Option 3: Probably the html content that this script loads has a class or id, try to hide it in your styles

A
Alexander, 2013-12-10
@websiteserf

Loading using ajax technology is more profitable, because if the window is hidden, then the information is unimportant, or so
Use a js template and insert it .append()

A
Artur Smirnov, 2013-12-10
@artursmirnov

There are several ways to hide a block on a page. The main thing is to write these styles in CSS so that they are applied directly when the block is rendered, or if you are loading content dynamically, apply the style to the block before inserting it into the DOM.
margin-left: -100%;

V
Vapaamies, 2015-01-06
@vapaamies

can i put together a development team

Can. We allow. Take the poster "Looking for developers willing to work for food" and walk with it near the business centers in your city. Absurd, right?
If you only have an idea, but no profession, you are a businessman and you need to hire developers . Developers bring their production skills to the project , and you bring your organizational talent. If this is not available, you do not have an idea, sir, but a dream . The advice of the great strategist "spit on this matter with saliva, as they spat even before the times of historical materialism" applies to it. The great strategist was a noble organizer, he can be trusted.

V
Vlad Zhivotnev, 2015-01-06
@inkvizitor68sl

Write a business plan, an implementation plan, look for investors. An idea without a wrapper is worth nothing.
You will not assemble a development team for free. One or two with the promise "maybe it will shoot - then I'll pay" - you can try to find it, but ...

V
Vitaly, 2015-01-06
@xytop

Register here: assembly.com
If the idea is worthy, you will quickly find helpers

Q
Quber, 2015-01-06
@Quber

Offer a co-founder to a programmer for the implementation of your idea. Let's say 50% would be a good offer. You will spend 0 investments and get a programmer interested in the development of the project.

S
Sergey Sapov, 2016-03-10
@softmart

Order parts to freelancers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question