新选项卡中的Base64 PDF显示刷新前的空白页面 [英] Base64 PDF in new tab shows Blank Page before Refresh

查看:388
本文介绍了新选项卡中的Base64 PDF显示刷新前的空白页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题说这一切真的......我有一个base64 pdf字符串,我追加到:
data:application / pdf; base64,



使用我网页上的链接将pdf引入新标签。一个空白页面最初会显示出来,但是我刷新了页面,并且它完美地显示出来。



这个问题只有在我更改用于检索PDF的NodeJS代码后才开始它使用 https 模块取回PDF,但现在我正在使用请求



https://jsfiddle.net/o7upp4d8/

解决方案

目前推动禁止新的窗口 s到有能力导航到数据网址 意图弃用和删除:数据网址的顶部框架导航。 功能显然已经在实施。

有人对此提出了一些反对意见,但显然还不够;至少现在还没有。


The title says it all really... I have a base64 pdf string which I append to: data:application/pdf;base64,

The pdf is brought into a new tab using a link in my webpage. A blank page will initially show up, but then I refresh the page and it displays perfectly.

This issue only began once I changed my NodeJS code for retreiving the PDF, before it was retreiving the PDF with the https module but now I am using request.

https://jsfiddle.net/o7upp4d8/

解决方案

There is a current push to disallow new windows to have the ability to navigate to a data URL Intent to Deprecate and Remove: Top-frame navigations to data URLs. The "feature" is apparently already being implemented.

There was some objection raised to the idea, but apparently not enough; at least not yet.

这篇关于新选项卡中的Base64 PDF显示刷新前的空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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