Create an asynchronous infinite javascript cycle
15 USDIs it real to do that? made on a synchronous cycle, the browser is just hanging and everything.
In my task, the script once in a second connects to the php scorpion and checks if there are tasks for it, if not, then after a second re-connect, etc, if the task is, it solves it and sends a response to the server. The task can only be solved by JS, so I decided to try to do it in this way.
приветствую. требуется завернуть $.getJson в бесконечный асинхронный цикл чтобы браузер не зависал при работе.
реально ли такое сделать? сделал на синхронном цикле, браузер просто виснет и все.
В моей задаче скрипт раз в секунду подключается к скрпиту php и проверяет, есть ли задачи для него, если нет то через секунду вновь подключение и тд, если задача есть, он её решает и отправляет ответ на сервер. Задачу можно решить только JS, по-этому решил попробовать сделать это таким образом.
Client's feedback on cooperation with Vasil Zabolotny
Create an asynchronous infinite javascript cycleI solve the problem in 10 minutes. Please call me, you will not regret.
Profile deleted | Safe
Freelancer's feedback on cooperation with client
Create an asynchronous infinite javascript cycleEverything went well, provided the code, Stanislav checked and paid
pleasure of cooperation)
-
Нужно использовать вебсокеты для такой реализации, бесконечные циклы от лукавого 😁
-
Нужно использовать вебсокеты для такой реализации, бесконечные циклы от лукавого 😂
-
Для этих целей есть это -
https://developer.mozilla.org/ru/docs/Web/API/Web_Workers_API/Using_web_workers -
Current freelance projects in the category JavaScript
Vue API developer for AIScreen Software | Canva Project
350 USD
We are looking for an experienced frontend developer who will take on the exciting challenge of integrating the Microsoft Teams application into our digital platform. The successful candidate will play a key role in improving collaboration functionality and ensuring a seamless… JavaScript, Web programming ∙ 1 proposal |
Vue API developer for AIScreen Software | App Store Project
350 USD
About us: AIScreen is a leading company in the field of software for digital signage, dedicated to transforming visual interaction in business through innovative solutions. Our cutting-edge digital platform for signals allows organizations to create dynamic content for display… JavaScript, Web programming ∙ 10 proposals |
TG bot for automatic forwarding of text from posts to another channel- It is necessary for the bot to forward the TEXT from the post in Telegram and another channel specifically - To be able to forward TEXT that cannot be copied in the channel - To do it quickly and completely autonomously - To work on some server (I don't understand) around… JavaScript, Bot development ∙ 9 proposals |
Redesign the appearance of the filter
162 USD
Redesign the appearance of the site filter. We are looking for a senior frontend developer with serious knowledge of Javascript and CSS, as well as backend knowledge, the site runs on DLE. JavaScript, Web programming ∙ 6 proposals |
Shopify developer
13 USD
A web site needs to be developed on Shopify from scratch Required skills - liquid - Shopify theme development - html/css/js/react.js Write immediately with portfolio and hourly rate JavaScript, Web programming ∙ 3 proposals |