Answer the question
In order to leave comments, you need to log in
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
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
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()
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%;
can i put together a development team
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 ...
Register here: assembly.com
If the idea is worthy, you will quickly find helpers
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question