Stay on the current page. The next page is FULLY loaded

How can I stay on the CURRENT page until the NEXT page is fully loaded.

I experimented with things like creating a body

<body style='display: none'>

And then displaying it using jquery at full load, but that is not what I'm looking for.

I would like the user to stay on the current page (maybe it displays the graphics of the loader, but keeping the contents of the current page - without blank pages, etc.), and the next one loads, and then ... BAM you pop up the whole page to display . Otherwise, the page will skip as it loads.

all tutorials or plugins do either above, or something like http://github.hubspot.com/pace/docs/welcome/ show the loading bar on the NEXT page while it is fully loaded ... but it still allows you to see how items jump.

YOUTUBE has this (same as the pace above), but it remains on the CURRENT page, shows the loader, and then goes to the next, while the pace goes to the next page, and then shows the loader, while the rest of the page loads,

Hope I make sense.

Thanks.

+4
source share
1 answer

you need to use AJAX to load the page.

, , : http://tutorialzine.com/2009/09/simple-ajax-website-jquery/

+1

Source: https://habr.com/ru/post/1524365/


All Articles