Quote from dcraig:
The operating system allocates memory to a program when that program requests it. If there is not enough physical memory to go round, then memory pages are swapped to/from a swap or page file according to OS virtual memory management algorithms. These usually do a good job. Human intervention is unlikely to improve things.
Using a RAM disk is only likely to help performance for programs that than have significant amounts of file access. Browsers are not in that category.
Also remember if you allocate memory to a RAM file, you have less physical memory to go round and are more likely to have paging to/from the swap file or partition. Heavy swapping is the biggest killer of system performance there is.