Refactoring JS code
Good day, I have 3 files, one with 800 lines, one with 300, and one with about 600. I need to do refactoring because DOM Loading is called multiple times, and as I understand it, this is not working quite correctly. Ideally, split the one with 800 lines into 2 files, and create an additional file that will initialize all functions.
This all pertains to a website on OpenCart, and all functions include search, menu, sliders, etc.
-
1028 3 1 Good day! I am Mykola Mohilnyi, a web developer with over 5 years of experience, including working with OpenCart and JavaScript code optimization. I am ready to perform a proper refactoring:
Extract functions into separate files
Reduce code duplication
Properly organize DOMContentLoaded calls (to avoid conflicts)
Create a startup file for initializing all components (search, menu, sliders, etc.)
-
114 Hello!
I have experience with code optimization, refactoring large files, and improving function initialization. I will quickly and efficiently handle your task. I'll get to work!
-
1486 4 0 Good afternoon.
Ready to look, have encountered similar multiple times and optimized such things
-
494 3 0 Good day!
I have carefully reviewed your task — to refactor three JS files (800, 600, and 300 lines) in an OpenCart project, optimize DOMContentLoaded duplication, and structure the code: split the large file, move initialization into a separate module.
I am a fullstack developer with experience in OpenCart, as well as pure JavaScript, jQuery, and Frontend optimization. I have solved similar tasks multiple times — when a large amount of logic accumulated in old projects, especially regarding UI functions: search, menu, sliders, tabs, modal windows, etc.
🔧 What I will offer:
- Breaking down the code into logical parts: ui/menu.js, ui/search.js, components/slider.js, etc.;
- A centralized init.js that connects and calls functions after DOM loading;
… - Eliminating DOMContentLoaded duplicates, optimizing readability and maintainability of the code;
- Neat integration with OpenCart, without risking breaking templates or modules.
I can start working immediately after clarifying details and quickly provide the first results. I work responsibly, with a clear structure and transparent communication.
Best regards,
Yuriy Khrobak
-
693 21 0 Hello. I can do your project. I have experience. Write to me, and we will agree.
-
548 1 0 Hello, Ihor. I understand that you need help refactoring three JavaScript files on your OpenCart website, especially to optimize DOM loading and better organize your code. I can split the large file into smaller logical parts, remove duplicate DOM calls, and move all function calls into a clean initialization file.
This will improve both performance and maintainability, especially for dynamic components such as search, menus, and sliders. I will keep the structure modular and easy to update in the future.
Do you want me to use ES modules or keep the regular structure for compatibility?
Looking forward to working with you.
Best regards,
Tetyana
-
351 Ready to start work, the deadline can be changed according to your wishes
Good communication with the client = good work
Clear technical assignment
-
553 1 0 Good day,
I have experience in code refactoring, especially in JS. I will gladly help with your question!
Write to me privately, and we will discuss the details.
Best regards,
Oleksandr
-
6900 18 1 Good day
I am a full stack developer with 3+ years
Refactoring is key, so I have a lot of experience in this
Write, we will discuss the details
-
475 2 0 Hello! Ready to discuss and execute!
https://smate1.github.io/ink.design/
https://smate1.github.io/PanterEx/
https://smate1.github.io/stay_safe/
https://smate1.github.io/avg/
-
12691 600 0 Good day, contact me - I will look at your files....................................
-
236 Good day, I have 4 years of experience and am ready to help solve your problem
-
447 1 0 Good day!
I am very interested in your proposal. I am a FullStack Web developer with experience in stacks such as PERN, MERN, PEVN, MEVN. I work with modern technologies: Node.js (NestJS), React.js (Next.js), PostgreSQL, and other tools from the JavaScript ecosystem.
Here is what I can offer you:
- Clean and maintainable code — I use ESLint and Prettier to ensure the code is structured, readable, and easy to support;
- Clear architecture — the entire project structure will be logical, without chaos or "confusing forests";
- Modern technologies — using up-to-date solutions on both the frontend and backend;
- Quality and timely development — I work responsibly, adhering to deadlines;
… - Pixel-perfect responsive design;
- Website localization;
- SEO — optimization for search engines;
- Precise implementation of requirements — everything will be realized according to the specified technical task.
If you are looking for quality, clean architecture, and a responsible performer — I am available!
-
3012 73 4 2 Good day! I can do it qualitatively!!!!!! Contact me!!!!!!!!!!!
Current freelance projects in the category Javascript and Typescript
I am looking for a mentor with Claude Code to launch a web project from scratch.Brief about the task: I am a beginner with no programming experience. I have a ready specification for website development (42 pages, Next.js, PostgreSQL). I want to implement it myself using Claude Code - I need a specialist who will set up the environment and teach me how to… Javascript and Typescript, Tuition ∙ 3 hours 20 minutes back ∙ 10 proposals |
Website design updateIt is necessary to update the design of the existing website using HTML, CSS, JS: refresh the appearance, make it modern and responsive for mobile devices. Smooth animations and interactive elements need to be added. HTML & CSS, Javascript and Typescript ∙ 20 hours 52 minutes back ∙ 73 proposals |
Consultation and audit of the current project on Odoo 19 Community EditionWe are looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition, including using Claude Code. We need a specialist who has successfully implemented projects in Odoo and practical experience in development using Claude Code. Important: we only… C & C++, Javascript and Typescript ∙ 1 day 2 hours back ∙ 5 proposals |
Online clothing storeNeed a developer for an online clothing store Looking for an experienced developer to create a full-fledged online clothing store with a drop model of sales. What needs to be done: 6 pages: home, product, cart, checkout, account, admin panel Login via Google account Cart and… HTML & CSS, Javascript and Typescript ∙ 2 days 23 hours back ∙ 99 proposals |
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 ∙ 5 days 10 hours back ∙ 32 proposals |