Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:00:45+00:00 2026-06-18T16:00:45+00:00

i have this in my document ready function <script type=text/javascript> $(document).ready(function () { if

  • 0

i have this in my document ready function

 <script type="text/javascript">
    $(document).ready(function () {
        if ($("[rel=tooltip]").length) $('[rel=tooltip]').tooltip();
        var path = "@Url.Content("~/Contents/Users/" + HttpContext.Current.User.Identity.Name + "/images/")";
        $.vegas({
            src: path + Preferences.GetBackground(),
            fade: 2000
        })@*('overlay', {
            src: "@Url.Content("~/Contents/css/images/01.png")"
        })*@;
    });
</script>

I’m using the plugin vegas for the full screen background image in the website. so $.vegas actually sends a GET request to the server. my question is, does this cause the browser to wait for the response and then only show the contents to the user or is it done behind the scene while the contents are displayed?
I was asking this because the background image is often more than 150kb,so i wanted to make sure this doesnt increase the response time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:00:47+00:00Added an answer on June 18, 2026 at 4:00 pm

    If the vegas plugin is using $.ajax to make the request using a standard configuration (i.e. async is true) then the page will not be waiting on the request to complete as the operation is asynchronous. Usually, a callback function is passed when an AJAX request is made, to be executed when the response is returned.

    If async is set to false however, then the page will be waiting for the repsonse to come back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code: <script type=text/javascript> $(document).ready(function() { var url = https://graph.facebook.com/search?q=cinema&type=post; $.ajax({ type:
i have this code: <script type=text/javascript> $(document).ready(function() { function doAjax(url) { $(#customForm).submit(function() { var
I have this code running great in ff, opera and chrome: <script type=text/javascript> $(document).ready(function(){
I have (basically) this code - <script type=text/javascript language=javascript> $(document).ready(function() { $(#loadDiv).load(mypage.html, function(){ alert($(#someText).text())
I have a JS code like this <script type=text/javascript> $(document).ready(function(){ $('.main').on('click', '.block', function (){
i have this jQuery-AJAX code below and a form: <script type=text/javascript> $(document).ready(function () {
hi have this code which works perfectly with just value: <script type=text/javascript> $(document).ready(function() {
I have this: <script type=text/javascript> jQuery(document).ready(function(){ jQuery('#menu-main-menu li a').after('<p class=separator>/</p>'); jQuery(.textwidget a[href^='http://']).attr(target,_blank); }); </script>
I'm using this code: <script type='text/javascript'> $(document).ready(function () { //Check if url hash value
Say I have this code in my page: <script language=javascript> $(document).ready(function() { $(.test).click(function() {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.