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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:35:41+00:00 2026-05-15T00:35:41+00:00

I’m going to try and describe the code in my view, without actually posting

  • 0

I’m going to try and describe the code in my view, without actually posting all the garbage:

It has a standard shell (header, footer etc. in the layout) this is also where the sub navigation exists which is based on a loop (to find the amount of options) – on this page, we have 6 subnav links.

Then in the index view, we have a 3rd level nav – with 3 links that use javascript to link/hide divs on the page.

This means each of those original 6 options, all have their own 3’rd level nav, with each of their own 3 div pages.

These three pages/divs have the input form for creating a record in rails, and then the other 2 pages show the records in different assortments.

ALL of this code lives on one page (aside from the shell). The original sub nav uses a javascript tab solution, to browse through all of it… (this means its about 6 divs, which all contain 4 divs of function – so about 24 heavy divs).

Loading it seems to take forever, although after loaded its extremely fast (obviously).

My big question, is how should I attack this? I don’t know ajax – although I imagine it’d be a good solution for loading the tabs when clicked.

Thanks!

Elliot


UPDATE:

So I don’t think caching the pages is actually going to accomplish much… I have 84 loops which call records in the page (its currently 84 as there are 7 main menu item – added one more since original post, each menu item has 3 pages, within those three pages there are about 12 lists of items, and because it all lives on one page – 7×12 = 84 loop/lists…Each time I decide to add a main menu item, it will add 12 more loops/lists to the page). And they can’t be cached as they themselves are dynamic.

I feel like there needs to be some type of progressive loading solution in existence, where the tab only loads the data when clicked?


I’ve been doing a number of things to speed up the page, all of which I will post in an answer upon completion.

  • 1 1 Answer
  • 3 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-05-15T00:35:43+00:00Added an answer on May 15, 2026 at 12:35 am

    Ok so here are the steps I’ve taken:

    Understanding Eager Loading & How to use it? (specific issue) (implemented eager loading to cut down on SQL queries)

    Only show content when certain criteria is met? (less empty content on page)

    Remaking this loop by user? (perfecting the above through the models)

    The page is much faster now, hopefully these resources help someone else too!

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

Sidebar

Ask A Question

Stats

  • Questions 459k
  • Answers 459k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer C# is compiled to bytecode that runs on the CLR,… May 15, 2026 at 11:34 pm
  • Editorial Team
    Editorial Team added an answer The CA2000 implementation is very sensitive to cases where an… May 15, 2026 at 11:34 pm
  • Editorial Team
    Editorial Team added an answer Answering your question in part: From here: Using Visual Studio… May 15, 2026 at 11:34 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.