Помощь по JavaScript
8 USDНужно помочь с реализацией логики на JavaScript, нужно реализовать добавление скриптов в html во время загрузки. Тоесть загружается html и в это же время добавляются скрипты в head и body. Реализацию я сделал но она не работает так как мне нужно. Возможно связаться через Скайп и обсудить.
-
224 1 0 Щоб правильно все відпрацьовувало треба всі скріпти обернути в document.addEventListener("DOMContentLoaded", => (e) {
code
});
Незрозуміло суть заідання але треба спочатку щоб прогрузився документ зі стилями, а вже потім скріпти. Бо користувача невує неправильна поведінка сторінки при загрузкі і він покида сторінку.
-
1428 47 0 Есть готовый рабочий скрипт загрузки.
Делал для статического сайта чтобы меню изменять в одном файле.
Обращайтесь.
-
229 5 0 Добрый день.
Заинтересовал ваш проект.
Имею опыт работы с JS. Обращайтесь, буду рад вам помочь!
-
2660 427 9 1 Готов помочь с кодом
= -=- =- =- =-= -= -=- =- =-=- =- =- =-= -= -= -= -=-= -= -= -=- =- =- =- =- =- =- = -= -= -
-
1060 45 0 Здравствуйте, Анатолий
А в чем заключается суть задачи вообще? Может вам проще использовать атрибуты async и defer? Вы могли бы объяснить свою цель подробнее?
В любом случае, буду рад обсудить детали этого проекта и ответить на все интересующие вас вопросы в ЛС.
-
3777 111 3 5 Здравствуйте, Анатолий.
Готов помочь с добавлением скроптов в DOM/
С уважением, Юрий
-
152 Через webpack сделай
________________________________________
-
А просто скрипт нужный в хедер подключить?
-
А что должен сделать подключенный скрипт?Может есть другой вариант реализации задачи. В идеале нужно сам скрипт посмотреть. 100-200 грн. В зависимости от объема работы.
-
А якщо винисти функцію(та яка виконує вашу задачу типу модалка чи що ви плануєте) за межі домконтент лоадед. І кинути умову якщо body прогрузився чи нівиконати умову....
document.addEventListener("DOMContentLoaded", function(event) { console.log("DOM fully loaded and parsed"); }); -
var script = document.createElement('script');
script.src = "/js/common.js";
document.getElementsByTagName('body')[0].appendChild(script);
?
-
добавь в вайбер victorchei , я посмотрю и просто помогу , я сам сейчас учусь
-
Current freelance projects in the category Javascript and Typescript
Full-stack development — Amazon PPC Dashboard (Stage 1)Need a full-stack developer with experience working with Amazon API to implement Stage 1 of the internal PPC dashboard. The project is real, the data is live, everything is ready to start. Frontend prototype (5 pages, React + TypeScript): WHAT IS ALREADY READY — Frontend… Javascript and Typescript, Web Programming ∙ 6 hours 56 minutes back ∙ 12 proposals |
Development of a photo book and photo frame constructor websiteProject Goal A modern website needs to be developed for ordering photo books, photo frames, and other personalized photo products. The main task of the project is to provide the client with the ability to independently create a ready-made layout of the product directly on the… Javascript and Typescript, Web Programming ∙ 1 day 22 hours back ∙ 88 proposals |
Full-stack developmentNeed a full-stack developer who is free for work and not looking to get rich immediately from this project. This is my test site: readyhome.ge the prototype of which I want to create (not referring to design). In the footer, there is Russian language, fill out the questionnaire… Javascript and Typescript, Web Programming ∙ 2 days 11 hours back ∙ 79 proposals |
Team for a custom marketplace of funeral services.We are looking for a team to launch and develop a custom national marketplace for funeral services. Right away: we are not looking for solo freelancers, juniors, or "website builders." We need a strong product team at the middle+/senior level with real cases in… Javascript and Typescript, Web Programming ∙ 2 days 17 hours back ∙ 25 proposals |
Improvement of the existing Next.js/Supabase project: offers, CRM, analytics, AI chatThere is an active project WatchGenius — a luxury watch analytics platform with a catalog of models, price analytics, external offers, application forms, and an AI chat. The project has already been partially developed. We need not a website from scratch, but an experienced… Javascript and Typescript, Web Programming ∙ 4 days 18 hours back ∙ 54 proposals |