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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:14:38+00:00 2026-06-02T09:14:38+00:00

I am using django forms, and loading wysiwym editor in a page. The problem

  • 0

I am using django forms, and loading wysiwym editor in a page. The problem is that each form has 4 instances of wysiwym editors, and the page can have 10-30 such forms on an average.

        {% for form in forms %}
            <ul data-role='listview' data-inset='true' class='find_details'
                id="find_details_{{ form.instance.id }}" style='display:none;' >
                {{ form.as_ul }}
            </ul>
        {% endfor %}

The way I am loading wysiwym is as follows:
For all inputs with class wym, add the wymeditor.

$('#page').live( 'pageinit', function(event) {
  $('.wym').each( function () { $(this).wymeditor(); });
});

This method leads to reloading of all the static content associated with the wysiwym editor 40-100 times on the same page, thus leading to an insane load time.

What might be a good way of implementing this, without having the css, images and iframes load so many times? I can definitely do the same thing after the document loads, but I am primarily looking for a best practice solution for consolidating the loads to just once if possible.

  • 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-02T09:14:45+00:00Added an answer on June 2, 2026 at 9:14 am

    You can initialize WYM on demand, only if user clicks into textarea. So unused textareas will not slow down loading.

    Maybe even hide that textareas and show DIVs with actual rendered content and catch clicks on them. Will look good, kind a wysiwyg.

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

Sidebar

Related Questions

I'm using Twitter Bootstrap with Django to render forms. Bootstrap can format your forms
I'm using Django-Registration and the form just has 3 fields (Username, Email, Password, and
I've run into a problem with using two models for my form in Django.
Am using Django's form for my login page. I want to set focus to
I have a certain problem with Django forms that seems to me should definitely
Using django-contact-form , I have overridden the form class: from contact_form.forms import ContactForm from
When I'm using a form I clean field data using Django forms but how
I'm using Django's Form Wizard in my app. There are five forms in total
I'm rather new to Django and I'm using Django 1.0. I have this: forms.py:
So I am creating a website using Django templates, forms etc. One thing I've

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.