0
我在Azure网站上有一个网站。有时需要几秒钟才能重定向到登录页面。屏幕显示一个空白页面,用户抱怨。这是一种在加载登录页面时显示一些启动页面的方式吗? 重定向登录页面时显示一个闪屏图像?
我在Azure网站上有一个网站。有时需要几秒钟才能重定向到登录页面。屏幕显示一个空白页面,用户抱怨。这是一种在加载登录页面时显示一些启动页面的方式吗? 重定向登录页面时显示一个闪屏图像?
你可以使用animate gif说装载或类似的东西。你需要做的是将Gif放在div中的位置。隐藏在div最初并使其可见,一旦你点击登录按钮或链接是这样的:
<script>
$('#loader').show();<--this makes the Gif visible while you are redirecting to login page-->
</script>
<html>
<body>
<div id="loader" style="display:none"><img src="~/Content/loading1.gif" /></div><--div with the hidden gif image-->
<div id="mainDiv"><--the div with you main content of the page-->
<--this can be a login button or action link-->
<input id="submit" type="submit" value="Save" formmethod="post" onclick="showGif()" />
<--rest of your code-->
</div>
</body>
</html>
我的情况没有点击。 index.cshtml页面在未登录时自动重定向到登录页面。 – ca9163d9
这可能是因为应用程序池是不活跃的,你有没有“永远在线”启用了网站? – jakobandersen
我被告知Azure设置已启用“始终开启”。 – ca9163d9