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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:31:03+00:00 2026-06-05T23:31:03+00:00

I was considering using Dart for a Framework I was going to write. One

  • 0

I was considering using Dart for a Framework I was going to write. One of the issues I found was that I could not lazy-load my classes or perform some alternative method of loading more code. I wish to dynamically load more code when the user browses to different areas of the site without reloading the page ((ab)using the history API), but from what I could tell I would have to load all of the code upfront. This just wouldn’t work because it would give terrible first-load times and every time I change any code the users would have to re-download all of the code for the website.

An example of a program that does this in javascript is SyntaxHighlighter. There is an option to load brushes only when they are needed.

In dart, you could load an isolate and pass some serialized version back in forth to accomplish syntax highlighting, but for my app I need event listeners and handlers and a lot of DOM and CSS manipulation, there is no way that I am going to write a custom API for doing all of this with primitive types.

I was wondering if there was a way to accomplish this in Dart or if there is anything in the works that would allow this technique to be implemented. (or else it is back to JavaScript).

Thanks, Kevin

  • 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-05T23:31:05+00:00Added an answer on June 5, 2026 at 11:31 pm

    To my knowledge there is no way to load code dynamically on the fly into an already running Dart program (although this might change when reflection arrives in Dart).

    You could load a different Dart program and then communicate with it using postMessage but that seams a bit overkill. Perhaps you should open a bug for it. We also have a large Dart code base and could definitely use something like GWT code splitting to speed it up a bit.

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

Sidebar

Related Questions

I'm considering using the Google Contacts API for a webapp, but I'm worried that
We are considering using PhoneGap for an iPad application that we are developing. We
I'm considering using MongoDb for a backing store for a WPF app that I'm
I'm considering using eWay as payment gateway. They offer two options. One is to
I was considering using drupal to solve this problem, but not sure if it
I'm considering using Express framework in my next node.js project. However, a stumbling block
I am considering using pdf.js (an open source tool that allows embedding of a
I am considering using Firebase for an application that should people to use full-text
I'm considering using CouchBase for a very read heavy and write heavy application. I'll
I'm considering using a TVar to store some state in a web application (that

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.