Is it advisable to develop a standalone app in one file?

I currently have a website and I am in the process of developing an app for it using phonegap. Up to now, I have been updating my files and rebuilding the app each time I need to make a small change.

My query is: what are the drawbacks of creating a single html page with js (possibly angular) that can check the app version and download all necessary pages?

Keep in mind that these pages should be cached for extended periods (months to a year) if the version remains unchanged.

Thank you

Answer №1

It is perfectly fine to do so, in fact, it adds an extra layer of security especially when you have calls to APIs that should not be visible to users. Many top apps also follow this practice in certain situations.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Prevent title flickering in Android using Ionic

I am attempting to create a tab content page using the "standard" method recommended by the ionic template example. However, I have noticed that when switching between tabs on Android, the view title flickers. This issue is not present on iOS or desktop b ...

Navigate through every file in the SD card by utilizing the file API in PhoneGap

I am seeking assistance in navigating through each file located on the SD card, including all directories and subdirectories, using PhoneGap's FILE API (which is essentially the W3C File API). My goal is to execute a specific set of operations on thes ...

Using array.map() in JavaScript returns an array instead of an object

JavaScript is still new to me and I'm struggling with mapping an array. I'm not sure how to return an array with objects. Here is the original array: array1 = [{firstName: "Harry"}, {lastName: "Potter"}]; After using array1.map, it c ...

Is HTML unable to display decoded %3C?

Two blocks of code with different input strings yield different results: // This does not change HTML var str = "%3Cdiv%3E"; // <div> var str_dec = decodeURIComponent(str); console.log(str_dec); // Console output is `<div>` document.getEleme ...

HTML content that is produced through JSONP retrieval

Recently, I've been experimenting with the jQuery library and have found it to be quite useful. Lately, I've been delving into AJAX requests to fetch various information like weather updates, current downloads, and more, which has been going smoo ...

Issue encountered while trying to access PHP script within table data utilizing Ajax

I have a small project that involves displaying different news articles. I need to incorporate the news_all.php file into the table data in dashboard.php without using the include('news.php) function. Instead, I am utilizing Ajax methods to achieve th ...

Integrate our JSON data center into the Google Maps API

After retrieving the lat and lng positions from the database, I attempted to replace them in the center JSON object, but encountered an issue. The console displayed the position as {lat:31.752809648231494,lng:-7.927621380715323}, which then led me to conve ...

Ways to determine the count of selected checkboxes in React.js?

Recently, I delved into learning React. For one of my beginner projects, I decided to create a "life checklist" using Functional Components as the foundation. Just a heads up: I've structured data.js as an array of objects containing "action", "emoj ...

I'm having trouble using Vueitify and the router - whenever I try to change components with Vue router, the URL updates but the component remains

Currently, I am working on setting up a single-page Vue application that utilizes Vuetify and the Vue Router. It seems like my routes are properly configured as: I can see them in the Vue tools, under both history and routes The URL and parameters update ...

Tips for implementing a time delay before copying a message in Discord.js and node.js to account for edits made after a few seconds

I have a script that is currently copying messages from my main server to the secondary server. However, I need to introduce some delay as sometimes I edit embeds and it ends up sending the unedited message first. Is there a way I can delay getting both ...

Setting up server-side CORS in ExpressJS will not include the "Access-Control-Allow-Origin" header

Looking to tackle a CORS request for an ExpressJS server, which is new territory for me. Despite encountering similar issues in the past, I can't seem to pinpoint the problem this time around. It appears that the required headers may not be in the cor ...

What is the best way to determine if the form has been submitted?

I am working on a React form and need to determine when the form has been successfully submitted in order to trigger another request in a separate form. const formRef = React.useRef<HTMLFormElement>(null); useEffect(() => { if (formRef &a ...

Utilize Recurly's Node to generate a transaction with stored billing details

I need help creating a transaction using Recurly stored billing information. I am currently using the node-recurly module in my Node.js application. https://github.com/robrighter/node-recurly Below is the code snippet that I have written: recurly.transa ...

Using Angular 4: Redirecting Menu to Component with Electron

I am currently working on my first project using Angular 4 and Electron to develop a desktop application. One of the challenges I'm facing is figuring out how to redirect to a specific component when a submenu item is clicked after overriding the ele ...

Serving sourcemaps for a web extension in Firefox: A step-by-step guide

Currently in the process of developing a web extension using TypeScript, I have encountered an issue with sourcemaps not loading properly. The use of parcel to bundle my extension has made the bundling process simple and straightforward. However, while the ...

How to exit an ASP.NET application by pressing the exit button

I am new to asp.net and currently using Visual Studio 2012. Currently, I am working on a login page where I have two buttons: Login and Exit. Whenever I click on the Exit button, I want the application to close and also stop the debugging process. I cam ...

Combine two objects and discard any duplicate keys

I have two objects named original and custom. My goal is to merge the content from custom into original, but only update the keys in original that are also present in the custom object. Here is an example scenario: var original = { coupon: { ...

Executing Promises in an Array through JavaScript

LIVE DEMO Here is a function provided: function isGood(number) { var defer = $q.defer(); $timeout(function() { if (<some condition on number>) { defer.resolve(); } else { defer.reject(); } }, 100); return defer.pro ...

Material-UI icons refusing to show up on the display

I've been working on creating a sidebar component and importing various icons to enhance the UI, but for some reason they are not displaying on the screen. I even tried other suggested solutions without success. <SidebarOption Icon = {InsertComment ...

The text fetched by AJAX or JavaScript after the page has loaded is being indexed by Google

Wondering about Google: 1 - Is there a possibility for Google to recognize text fetched via ajax? For instance, when a user makes selections from drop-down menus and information is displayed from the database. 2 - If I dynamically change the page titl ...