What strategies can be implemented to improve the load time for bigvideo.js?

Why are my load times extremely slow for such a small site? I had hoped to display an image before the video loads, but they both seem to load simultaneously, even if the video takes forever to load.

This is my HTML:

<div id="bigvid">
  <div class="img">
    <div id="header">
      <div class="inner presentation" style="z-index: 999; height: 100%">
        <header>
          <h1 style="
            font-size: 100px;
            line-height: 65px;
            letter-spacing: 12px;
            font-weight: 900;
            margin: 26px 0;
            color: #f5f4ed;
          ">
            hibidabibi 
          </h1>
          <hr>
          <span class="byline" style="
            font-size: 48px;
            line-height: 65px;
            letter-spacing: 12px;
            font-weight: 900;               
            margin: 26px 0;
            color: #f5f4ed;
          ">
            Coming Soon
          </span> 
        </header>
        <footer> 
          <ul class="icons">
            <li><a href="#" class="icon icon-twitter"><span>Twitter</span></a></li>
            <li><a href="#" class="icon icon-youtube"><span>Facebook</span></a></li>
            <li><a href="#" class="icon icon-instagram"><span>Google+</span></a></li>
          </ul> 
        </footer>
      </div>
    </div>
  </div>
</div>

This is my CSS:

 #bigvid {
   position: absolute;
   background-color: #000;
   height: 100%;
   width: 100%;
   z-index: 100;
   background-image: url('../images/screenshot.jpg');
 }

Visit for more information.

Answer №1

To achieve a seamless transition, ensure your body has 100% height. As the background image loads, there may appear to be no content until the video is fully loaded. Once the video populates the div, you will briefly see the background image during the resizing process.

Answer №2

Maybe try adding a larger video to test if that makes a difference. Honestly, I notice your placeholder image briefly before the video begins playing.

If you're using Chrome, press F12 to open developer tools. Then go back to the browser and click on the refresh button while holding down the mouse button. When the menu appears, select the last option - "empty cache and hard reload".

You might just be experiencing caching issues at this moment.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Click event to reset the variable

The code snippet in Javascript below is designed to execute the function doSomethingWithSelectedText, which verifies if any text is currently selected by utilizing the function getSelectedObj. The getSelectedObj function returns an object that contains in ...

Navigating by Typing in the URL Bar in React

Whenever I paste a valid URL and press enter, the useEffect function in the parent component does not get triggered. However, if I reload the page, it works fine. Here is the code snippet: Routing path <Route path="/search" element={<Searc ...

Using Jest's moduleNameMapper with Next.js without TypeScript

I've been encountering some challenges trying to implement moduleNameMapper in NextJS using JavaScript. In this particular project, TypeScript is not being utilized. Next: 12.2.5 React: 18.2.0 Jest: 29.0.1 Jest environment jsdom: 29.0.1 Below is the ...

Exploring the nuances between Ruby on Rails and the responses from json and JavaScript ajax

I am interested in learning the most effective method for handling an ajax request. Would it be better to send json data and parse it on the client side (for instance using pure), or should I generate javascript at the server side and send back the respo ...

JQuery Templates - when recursion becomes overwhelming

Utilizing jquery templates to create a tree structure for showcasing sections and items in a treeview format. The data layout is structured as follows, with each section containing items and subsections, while each item can potentially have additional sub ...

What is the best way to change a variable in an AngularJS view?

My Request In my application, I have implemented 3 views, each with its own controller. The first view is the home screen, and from there the user can navigate to view 2 by clicking on a div element. On view 2, the user can then move to view 3 by clicking ...

Experience the sleek transparency when black hues grace the interface on iOS 14 and above

When implementing the code snippet below, .packages > .ulWrapper::after { background: linear-gradient( to left, var(--edge-color) 5%, rgba(0, 0, 0, 0) 95% ); /* option 1 - red */ background: linear-gradient( to left, var(--edg ...

The scrolling on the image listing webpage is not as fluid as desired

I'm currently working on building a website for displaying images in Angular, similar to Google Photos. The site includes a custom scrollbar that displays the month and year. I want the image list to scroll when the user moves the scrollbar thumb. Her ...

Enter text into a field on a different webpage and verify if the output matches the expected result

Possible Duplicate: Exploring ways to bypass the same-origin policy I'm facing a scenario where I have a form on my website that requires validation of a number. The validation process involves checking this number against another website where e ...

What are the specific constraints for CSS within web components?

<html> <style> body { color: blue; } </style> <body> <h1>Styles!</h1> <p>someone created a very general selector</p> <isolated-stuff></isolated-stuff> </body> <s ...

Enhance Your Website with Dynamic Autocomplete Feature Using jQuery and Multiple Input Search Functionality

I am working on a form with three input fields. Here is the HTML structure: Name<input type="text" class="customer_name" name="order[contact][first_name]"/><br/> Email<input type="text" class="customer_email" name="order[contact][email]"/& ...

Grails project: Attempting implementation of tablesorter

I have a question regarding utilizing table sorter with my Grails project. I have successfully copied the jquery.tablesorter.js file into the 'js' directory, allowing me to make columns sortable on click. However, I am curious about accessing the ...

Choose a random element from a string with Javascript

Could someone please help me figure out why my code isn't functioning as expected? I'm trying to randomly select three names from a list and ensure that no name is repeated. While I believe I am on the right track, something seems to be missing. ...

passing a variable from PHP to JavaScript

When I attempted to transfer variables from PHP to JavaScript, I found myself quite confused. It was straightforward for me to retrieve values using an ID, like this: var name = $("#name").val(); However, my question is if I want to convert a variable li ...

The contents within the div element exceed the width of its parent element

Hey there, I'm currently working on a Rails application to showcase some links in a horizontal layout. The links are indeed displaying horizontally without wrapping, just as intended. However, I've noticed that the containing div is wider than th ...

Issues encountered when attempting to append the array objects to HTML using $.getjson

Hello, I have a JSON data structure as shown below: [{ "menu": "File", }, { "menu": "File1", }] I have created jQuery code to dynamically add the response to my HTML page like this: $(document).ready(function () { $.getJSON('data.json&a ...

Provide net.socket as a parameter

What is the best way to pass the net.socket class as an argument in this scenario? Here's my code snippet: this.server = net.createServer(this.onAccept.bind(this)); this.server.listen(this.port); } Server.prototype.onAccept = function () { // Ho ...

Using jQuery to eliminate a particular query from a URL

Hey everyone, I've run into a little issue that I need help with. This is the current URL I'm working with: blabla/shoe?type=boot&zoom=true I need to find a way to remove the "&zoom=true" part from the URL without causing a page reloa ...

"Encountering Issues with Angular's Modules and EntryComponents during Lazy Loading

Upon lazy loading an Angular module, I encountered an issue when trying to open my DatesModal that resulted in the following error: No component factory found for DatesModal. Have you included it in @NgModule.entryComponents? The declaration and entryCom ...

A dysfunctional JS object

I am grappling with a rather intricate object and have simplified it by removing unnecessary functions. However, I am facing an issue when I try to initialize it and I can't figure out the reason behind it. Safari is throwing this error at me: [Error] ...