Browse Source

Remove preloading

It isn't doing anything really (when I look at results), we already have the image in memory anyway.
Manav Rathi 1 year ago
parent
commit
531b4a4e40
1 changed files with 1 additions and 9 deletions
  1. 1 9
      web/apps/cast/src/components/Slide.tsx

+ 1 - 9
web/apps/cast/src/components/Slide.tsx

@@ -13,7 +13,7 @@ interface SlideViewProps {
  * Also show {@link nextURL} in an hidden image view to prepare the browser for
  * Also show {@link nextURL} in an hidden image view to prepare the browser for
  * an imminent transition to it.
  * an imminent transition to it.
  */
  */
-export const SlideView: React.FC<SlideViewProps> = ({ url, nextURL }) => {
+export const SlideView: React.FC<SlideViewProps> = ({ url }) => {
     return (
     return (
         <Container
         <Container
             style={{
             style={{
@@ -30,14 +30,6 @@ export const SlideView: React.FC<SlideViewProps> = ({ url, nextURL }) => {
                     backdropFilter: "blur(10px)",
                     backdropFilter: "blur(10px)",
                 }}
                 }}
             >
             >
-                <img
-                    src={nextURL}
-                    style={{
-                        maxWidth: "100%",
-                        maxHeight: "100%",
-                        display: "none",
-                    }}
-                />
                 <img
                 <img
                     src={url}
                     src={url}
                     decoding="sync"
                     decoding="sync"