All Questions
102 questions
0
votes
2
answers
32
views
How to Check Multi radio Groups if there is one Left Unchecked
I want to check if salad or side dish left unchecked after submitting.
I have a working approach but it's very ugly and I believe there is much simpler solution for such a simple task
my approach:
...
1
vote
4
answers
256
views
Javascript ID Number not working after 2 digits
I have this issue in dealing with ID number. I tried to delete some of the added rows when it reached above 10, it does not delete the correct row. Like if I will the row 11. It will delete the row 1 ...
0
votes
0
answers
122
views
is there a faster way to load jQuery DOM objects than this?
I got my SessionMgr.cfc working correctly thanks to Ageax. My question now is is a callback handler faster performance than how I am currently doing it?
The function that populates the showAll is ...
0
votes
1
answer
79
views
How to optimize jQuery tag:contains() selector?
I am trying to extract all the elements from webpage which contains given set of words. E.g. Given i have an array of random words
words = ["sky", "element", "dry", "smooth", "java", "running", "...
0
votes
0
answers
62
views
Does storing and retrieving data from memory is faster than doing the same from the DOM using data attributes and jQuery?
Please note that I'm after processing hundreds and even thousands of elements at once (sometimes even all DOM elements what so ever), and not a single element where performance is that case would ...
0
votes
1
answer
899
views
Why is the reason of React's better performance over direct DOM manipulation using JQuery?
I have doubts related with DOM manipulating in reference to comparison
between React Virtual DOM and JQuery direct DOM manipulation.
Let's say we want to update one DOM node:
A)by using React.js : ...
0
votes
3
answers
10k
views
best way to call $(document).ready() function
I was wondering what was the best way to call a function when the DOM was ready. I mean, I know that
$(document).ready(function(){})
and
$(function(){})
were the same way to implement the action ...
1
vote
1
answer
175
views
Reduce the DOM search frequency in Javascript
I'm in the process of getting rid of Jquery from a small project and re-writing the script with vanilla js. In the current code there's a jquery implementation to search a DOM element and then use ...
21
votes
5
answers
3k
views
Why does removing elements take more time than adding elements?
I have a table with a lot of rows (like 10.000).
(Note: I realize it doesn't make sense to have a table that large, but I'd like to understand the below behavior).
When I receive new data I want to ...
-1
votes
1
answer
85
views
Ideas About How Speed Up Page With Javascript
I've built that page. and it's using the framework vue.js 2 and Jquery.
It's blowing out my head because that page is very slow.
Could you expert guys help me with some idea about how to speed up it.
...
-1
votes
1
answer
67
views
Should I detach elements from the DOM while I apply many styles to them?
I'm concerned about performance and best practices.
So I'm building graphical UI and learned that I shouldn't call jQuery.append() a gazillion times when creating many small elements. So I got that ...
0
votes
2
answers
320
views
Best performance Javascript conditionals based on countdown timer
I am currently working on a project that is showing and displaying DOM elements based on a countdown timer. There is another function calling this one every second.
Here is a code sample:
function ...
-2
votes
1
answer
1k
views
How to avoid freezing the browser when adding a big HTML-Chunk (which was loaded via AJAX)
I have a web-app which displays information about various items. Only a small part of the items are being displayed initially. (the top level ones). When the page is initially loaded (and the first ...
0
votes
1
answer
24
views
Get passed element properties and attributes without many jQuery requests
I have some list with list elements, which each of them have many custom attributes, like data-user-id, data-avatar and so on. On each list element I am attaching a jQuery click event like this
$('*....
0
votes
1
answer
45
views
Changing DIV size vs Change its BG size (perfomance)
So, e.g. i have a div, i need to enlarge on mouseover.
I know 2 ways to do it:
a)actually to enlarge the DIV
b)Since I've heard of JS operating with
DOM is its main problem, it came to my mind, that ...