Skip to content

Commit

Permalink
Merge pull request #1259 from bjarthur/bja/extrajavascript
Browse files Browse the repository at this point in the history
put only a single copy of gadfly.js and snap.svg-min.js in text/html output
  • Loading branch information
bjarthur authored Mar 12, 2019
2 parents 31b24b3 + 047fdab commit 9df68de
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Gadfly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1070,14 +1070,7 @@ function display(d::GadflyDisplay, ::MIME"text/html", p::Union{Plot,Compose.Cont
<title>Gadfly Plot</title>
<meta charset="utf-8">
</head>
<body style="margin:0">
<script charset="utf-8">
$(read(Compose.snapsvgjs, String))
</script>
<script charset="utf-8">
$(read(gadflyjs, String))
</script>
<body style="margin:0">
$(plotsvg)
</body>
</html>
Expand Down

0 comments on commit 9df68de

Please sign in to comment.