第一次加载时如何在Hompage上预加载链接(href)? [英] How to Preload links(href) on Hompage When its load for the firsttime?

查看:102
本文介绍了第一次加载时如何在Hompage上预加载链接(href)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

好吧,朋友们,我正在开发一个完全依赖于JQuery和PHP的项目,
所以现在我想实现一些代码,这将有助于我在页面首次加载时加载所有链接(href).
当我们单击特定链接时,它不应再次加载,单击链接后,已经加载了该页面的页面应该会出现在div中.
请让我知道您是否不理解查询.

在此先感谢:)

Hi Friends,

Well Friends, I am, working on a Project Which is completly depend on JQuery and PHP,
so now i wants to implement some code which will help me to load all the link(href) when the Page loads for the firsttime.
When We Click on a Particular Link it should not Load again, the page which was already loaded it should come in to appearence in div after clicking on a link.
Plz let me know if u didnt undrstand the Query.

Thanks in Advance :)

推荐答案

当不确定用户是否会单击并访问所有那些链接时,加载所有链接不是一个好习惯.

而且,只是为了避免页面刷新,您不应该预加载所有链接.

更好的选择是利用AJAX将所需的详细信息加载到DIV本身中按需" .

希望有道理.

问候,
尼拉·索尼(Nial Soni)
It is not a good practice to load all the links when it is uncertain that users are going to click and access all those links.

And also, just to avoid page refresh, you should not pre-load all the links.

The better option is to make use of AJAX to load the required details in the DIV itself "on-demand".

Hope it makes sense.

Regards,
Niral Soni


这篇关于第一次加载时如何在Hompage上预加载链接(href)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆