新选项卡中的Base64 PDF显示刷新前的空白页面 [英] Base64 PDF in new tab shows Blank Page before Refresh
问题描述
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 window
s 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屋!