GithubHelp home page GithubHelp logo

No Page Refreshes about palomar HOT 1 OPEN

jmohler1970 avatar jmohler1970 commented on July 18, 2024
No Page Refreshes

from palomar.

Comments (1)

jmohler1970 avatar jmohler1970 commented on July 18, 2024

I am aware that this site does page refreshes. I would consider using vue.js or Angular 2 to meet this requirement. I would want to use whatever library is the most commonly used.

The reason I would chose vue.js is

In Vue, we also have render functions and even support JSX, because sometimes you do need that power. However, as the default experience we offer templates as a simpler alternative. Any valid HTML is also a valid Vue template, and this leads to a few advantages of its own:

For many developers who have been working with HTML, templates simply feel more natural to read and write. The preference itself can be somewhat subjective, but if it makes the developer more productive then the benefit is objective.

HTML-based templates make it much easier to progressively migrate existing applications to take advantage of Vue’s reactivity features.

It also makes it much easier for designers and less experienced developers to parse and contribute to the codebase.

You can even use pre-processors such as Pug (formerly known as Jade) to author your Vue templates.

Source: https://vuejs.org/v2/guide/comparison.html

My Primary Background

My primary background is not in SPA (Single Page Applications). I have migrated existing applications to use AJAX in the following ways:

  • Bootstrap Tab controls should AJAX content. Hidden content should not be loaded by default
  • Bootstrap Modal controls should AJAX content. For example if you are a user profile management page, there is no reason why an "add user" dialog would have to be loaded as a part of the page every time. It makes sense for a Modal to load it in.
  • jQuery Data tables remote data source. Uses will often search and refine data. That data should be loaded into an HTML without refresh.

These 3 combinations do not constitute a SPA, but they do seem cover about 90% of what SPAs are trying to do. I appreciate that different applications have different needs and that a full framework might be needed.

from palomar.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.