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 7982677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:44:34+00:00 2026-06-04T10:44:34+00:00

I’m trying to adapt a jquery-ui codebase to use RequireJs, and I’m deploying it

  • 0

I’m trying to adapt a jquery-ui codebase to use RequireJs, and I’m deploying it on a much slower (but scalable) virtualized cloud service than the dedicated host I was using before.

My pages are by default an ugly catastrophe of vanilla HTML. The only thing that brings this mess to life are calls to JavaScript functions, which give it the appropriate tab controls and layout. In fact, the page is laid out long and vertical…one section after another…before I call the .tabs() function which folds them up into a single unit with a horizontal control.

(Fairly confident I’m “doing it right” in the jQuery UI mindset. By not building the whole UI through code to start with, it can be at least looked at with JavaScript disabled. Though I doubt anyone is still using Lynx, there are issues of accessibility…or making sure your content is analyzable by search engines. I’ll spare you my old man speech about how this is an absurdist way of achieving content/UI separation. :-/)

When I was using <script> tags to load my 3rd party library dependencies and the $(document).ready to run the jQuery UI voodoo, the user never saw the vanilla ugly HTML. Now that I’m using RequireJs, the page.js file lags and loads asynchronously after the HTML…waiting for libraries that aren’t really needed for the DOMready handling. The slower server makes this look really awful.

I could of course use CSS styling to hide the ugliness at the outset, and overlay with a “Loading…” graphic until the UI was ready. That’s what came to mind first, and a similar approach is suggested here:

Jquery UI interface looks ugly before document.ready

(Note: It seems like such a common problem that I’d almost think there’d be a RequireJs plugin that went ahead and did this. Is there?)

In any case, I didn’t seem to have to worry about this before…and I’m wondering if I’m missing some simpler solution. How do you keep users from seeing “ugly” HTML if you’re using RequireJs?

  • 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-04T10:44:36+00:00Added an answer on June 4, 2026 at 10:44 am

    I’m with you that you should do some CSS wizardry and then in RequireJs’s “kick it off” script, hide it. You should also consider SEO impact and JavaScript disabled scenarios.

    Remember, at the end of the day, it’s just HTML, CSS, and JavaScript. What ever templating / code generation system you use to get you there, at the end of the day, it’s just HTML content, styled with CSS, and animated with JavaScript.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.