Shortcut to a website - open the site with JavaScript enabled #447
-
Hallo I created a shortcut on my Desktop for my Tasmota, which is connected to my smart meter (de: "Stromzähler").
Is it in any way possible to use HTTP-Shortcuts to show websites by using their JS, with "Javascript enabled"? I know that I can place Javascript myself in the settings of a shortcut, but is it not possible to use the site's JS? One nice thing about HTTP-Shortcuts is that it is so fast. I could open my Tasmota Smartmeter with my browser (Firefox/Chrome/etc.) but that is so slow. Thank for help, -- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, This is currently not possible, as the app doesn't behave like a normal browser. It essentially just makes an HTTP request and then displays the HTML from the response. So basically, what's being displayed there isn't a website, it's a static snapshot of the website. I have considered allowing to enable JavaScript within that snapshot, but there would be no guarantee that it would actually work that code wouldn't be running inside a regular browser. So this could be an "experimental" feature at best. My guess is that one of the main reasons why the HTTP Shortcuts app appears to load faster than a regular browser is because it isn't a browser, so it saves time by not loading any JavaScript for example. So for now at least, there's no solution for making this work in the app. You could try creating a "Browser Shortcut" instead of a "Regular HTTP Shortcut" and switching its browser to "Custom Tab". That would essentially open a sort-of lite version of a browser, so maybe that would get you the desired performance. |
Beta Was this translation helpful? Give feedback.
Hi,
This is currently not possible, as the app doesn't behave like a normal browser. It essentially just makes an HTTP request and then displays the HTML from the response. So basically, what's being displayed there isn't a website, it's a static snapshot of the website. I have considered allowing to enable JavaScript within that snapshot, but there would be no guarantee that it would actually work that code wouldn't be running inside a regular browser. So this could be an "experimental" feature at best.
My guess is that one of the main reasons why the HTTP Shortcuts app appears to load faster than a regular browser is because it isn't a browser, so it saves time by not loading any JavaSc…